Why an Object?


By now youre wondering what is so revolutionary about looking at the world as objects. The short answer is that focusing on objects makes it easy for us to understand complex things. Objects enable us to look at details that are of interest to us and ignore other details that we are not interested in.

This is evident when you meet your teacher. A teacher is a person and has many of the attributes and behaviors that you posses. Yet, you probably ignore many of the teachers attributes and behaviors and focus on only those that pertain to your education.

Likewise, the teacher focuses on your attributes and behaviors that indicate how well you are learning material in class. Other attributes, such as your performance in an unrelated class or your height and weight, are ignored by the teacher. Similarly, a teacher may not care if you drive a car or walk to campus.

Both you and your teacher simplify your relationship by deciding attributes and behaviors that are important to each of your objectives and then use only those attributes and behaviors in your relationship.




OOP Demystified
OOP Demystified
ISBN: 0072253630
EAN: 2147483647
Year: 2006
Pages: 130

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