C++ Programming Language - Princess Sumaya University for ...
C++ Programming Language - Princess Sumaya University for ...
C++ Programming Language - Princess Sumaya University for ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1. 5. Object Oriented programming<br />
( O O P )<br />
g. Examples<br />
A car is a collection of attributes: type, engine, color, size,<br />
doors, year, and so <strong>for</strong>th.<br />
A car can be described as a collection of actions: move,<br />
speed up, stop, park, and so on.<br />
Car ----> class<br />
My_Car is an object of the class car.<br />
----> The Type of My_Car<br />
----> Move My_Car<br />
----> Stop My_Car<br />
Dr. Arafat Awajan - PSUT - 2004 12