2. C++ Class
• A class is a blueprint for the object.
We can think of a class as a sketch (prototype) of a house. It
contains all the details about the floors, doors, windows, etc.
Based on these descriptions we build the house. House is the
object.
Create a Class
A class is defined in C++ using keyword class followed by the name
of the class.
The body of the class is defined inside the curly brackets and
terminated by a semicolon at the end.
3.
4.
5.
6.
7.
8. Outline:
• 1.Array
• 2.Function
• 3.Introduction to OOp (object, Classes)
• 4.Public Class example (data members, functions
• 5.Private class ( seter Access, Geter Access)
• 6.Constructur (default, overloaded, copy constructor)
• 7. Inheritance (public and private inheritance)
9. • Types Single Multilevel Multiple
• 8. Abstract Class (virtual, pure virtual)
• 9.Polymorphism (overriding, overloading)
• 10. Composition and aggregation (Association)