answersLogoWhite

0


Best Answer

In the real world, we humans like to classify everything from living things to inanimate objects, grouping things by the properties they share. For instance, in the world of living things we classify everything by kingdom, phylum, class, infraclass, order, suborder, family, subfamily, tribe, subtribe, genus and species. Thus the homo sapiens species belongs to the kingdom of animals, the phylum of chordata, the class of mammals, the order of primates, the family of hominidae, the tribe of hominini and the genus homo. Each classification is a more specialised type than the one that precedes it. Thus higher classes are more generic and lower classes more specific. The bat, which is also in the class of mammals, shares the same phylum and kingdom as we do, but differs in its order, family, tribe and genus. Thus we are related to bats in as much as we are both a type of mammal.

This type of classification is known as a taxonomy, and can be represented as a hierarchy, a family tree structure, with the most generic class at the top, or root, and the more specialised types splitting off on each subsequent level.

Just as we classify objects in the real world, we classify objects in the virtual world using a virtual taxonomy. The virtual taxonomy need not accurately reflect any real world taxonomy of the objects we are representing. If we wished to model a dog kennel, then we can limit the taxonomy to the genus: canis. If we also wished to identify the individual species and breed of dog then we might include those more specialised classifications, or we may limit our classification to breed. The point is we need only include those aspects that are actually of relevance to our program. For instance, we don't really need to know that a dog is actually a class of mammal unless we wished to segregate mammals from other classes, such as reptiles, but group them as animals.

By organising objects in this manner, we can greatly reduce the amount of duplicate code we need to write simply by encapsulating the generic functionality within the upper base classes, and placing the more specific functionality within the lower derived classes. For instance, most animals make some sort of noise, thus every animal object can "speak". When we call that method upon a dog, we would expect it to bark, while a cat should meow. These are simply specialised methods of a common, generic method. Animals that don't make a noise can simply default to the generic animal method, which simply produces no sound. Thus we need only cater for those that do make a sound.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Real world is full of classes explain?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Dustin real name from the real world las Vegas?

his full name is dustin vito.


Where can one find some reviews about full sail real world education?

Full sail real world education is now known as Full sail University. University reviews can be found at sites like theuniversityreview, studentsreview, and collegeprowler, to name a few.


What are the classes in aqworlds?

For a full list of all the classes in AQWorlds and the information on the classes, check out the link below.


Is the there a Father Christmas?

He is real. No matter whether you're friend say he is or not, he is. The are falling into the trap of disbelieving things they never see and can't explain , and have forgotten that the world is full of magic, in many forms. He's real. End of. PS. I'm thirteen and still believe. Don't stop believing. Have a good Christmas.


Is Tommy santorelli real?

well no one knows really ?or maybe someone does but the world is full of mysterys


How many classes can you take if you redshirt?

It will depend on the university how many classes a redshirt student can take. Fundamentally, they will not be able to attend classes full time.


Are online classes a good idea for people that work full time?

Online classes are great for people with a full schedule. It is important to be very self motivated if this is the route you are going.


What are the spectral classes?

See related link for a full explanation.


What is Sterling Knight's real full name?

Sterling Sandmann Knight is his full real name.


What classes of medication do not have a ceiling on their analgesic effects?

full mu agonists


How can you explain political science today?

FULL OF EXHIBITS


Explain how the factors can be used to work out what fraction of a full turn is 40 degrees?

explain how the fractions can be used to work out what frction of a full turn iss 40 degrees