Programming With C++ - Lecture 1
Programming With C++ - Lecture 1
Programming With C++ - Lecture 1
Program
Standard definition
Set of instructions executed by a computer system
to perform a task (function).
Comparison
Low level High Level
• Efficient in execution Opposite
• Difficult to read/write
• Cross Device(hardware)
implementation restrictions
5
DATA DATA
Object 1 Object 2
Operations Operations
Program in context of object technology
8
Operations Operations
Operations Operations
Object Y
DATA DATA DATA
11
Object Classes
Generally objects are grouped in Generic Classes
Object Classes
Class templates: Contains basic data of an objects
related to that class.
For e.g. data types objects such as int “i”, string
“s”
Class Object
Person Shan
Diagram triangle
Int i
String s
13
The End
Thanks for coming
Reference books:
Turbo C++ by examples, Greg Perry and Marcus Johnson,
1st Edition, Prentice Hall, Holis NH