Tuesday, September 9, 2008
Microsoft MCITP Certifications Exam 70-236
Subsumption is a property 646-204 that all objects that reside in a class hierarchy must fulfill: an object of the base class can be substituted by an object that derives from it (directly or indirectly). All mammals are animals (they derive from them), and all cats are mammals. Therefore, because of the subsumption 650-393 property we can "treat" any mammal as an animal and any cat as a mammal. This implies abstraction, because when we are "treating" a mammal as an animal, the only we should know about it is that it lives, it grows, etc, but nothing related to mammals.This property is applied in C++, whenever we are using pointers or references to objects that reside in a class 70-236 hierarchy. In other words, a pointer of class animal can point to an object of class animal, mammal or cat.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment