Chapter - 2 Oops
Chapter - 2 Oops
Concepts of OOP:
Introduction OOP, Procedural Vs. Object Oriented
Programming, Principles of OOP,
Benefits and applications of OOP
prof.Arkesha Shah
Procedural Vs. Object Oriented Programming
OOPs Concepts
Object means a real word entity such as pen, chair, table etc.
A class is defined in C++ using keyword class followed by the name of class.
The body of class is defined inside the curly brackets and terminated by a
semicolon at the end.
Declaring Objects:
To use the data and access functions defined in the class, you need to create
objects. Syntax:
ClassName ObjectName;
Abstraction
It helps in displaying the essential features without showing the details or the
functionality to the user.
It avoids unnecessary information or irrelevant details and shows only that specific
part which the user wants to see.
Polymorphism
It is known as inheritance.
Benefits of OOP