Conclusion

 <  Day Day Up  >  

There is a lot to cover when discussing OO technologies. However, you should leave this chapter with a good understanding of the following topics:

  • Encapsulation ” Encapsulating the data and behavior into a single object is of primary importance in OO development. A single object contains both its data and behaviors and can hide what it wants from other objects.

  • Inheritance ” A class can inherit from another class and take advantage of the attributes and methods defined by the superclass.

  • Polymorphism ” Polymorphism means that similar objects can respond to the same message in different manners. For example, you might have a system with many shapes. However, a circle, a square, and a star are each drawn differently. Using polymorphism, you can send each of these shapes the same message (for example, Draw ), and each shape is responsible for drawing itself.

  • Composition ” Composition means that an object is built from other objects.

This chapter covers the fundamental OO concepts. By now you should have a good grasp of what OO concepts are all about.

 <  Day Day Up  >  


Object-Oriented Thought Process
Object-Oriented Thought Process, The (3rd Edition)
ISBN: 0672330164
EAN: 2147483647
Year: 2003
Pages: 164
Authors: Matt Weisfeld

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net