1. Features of OOP
Presented by-
Ms. Shweta Gajbhiye
Asst. Prof. Computer Science and Engineering,
Priyadarshini J. L. college of Engineering
Nagpur
2. Features of OOP
Class
Object
Data hiding
Encapsulation
Inheritance
Polymorphism
Message Communication
3. Class in C++
• The C++ class is an extension of the C language structure.
• Structure is the collection of heterogeneous datatypes and
also called as user defined datatypes , complex datatypes
7. Difference between C structure
and C++ structure
struct struct_name
{
data members;
};
struct struct_name
{
data members;
member functions;
};
C structure C++ structure
9. class structure
It supports implementation of
complex programs through
inheritance
It does not support inheritance
By default all the members are
private
By default all the members are
private
Difference between class and structure
10. Data hiding
Encapsulation
Object is an instance of class/class type
variable
Class is a blueprint
Class is a logical entity ,object is a physical
entity