1 - Introduction, Need of Oop, Pop Vs Oop
1 - Introduction, Need of Oop, Pop Vs Oop
Coimbatore-35.
An Autonomous Institution
• UNIT – I Introduction
Mrs.S.R.Janani
Assistant Professor
Department of Computer Science and Engineering
Need for OOP, POP vs OOP /16CS451 OBJECT ORIENTED
08/23/2021
PROGRAMMING USING C++/Janani.S.R/CSE/SNSCT
How people are communicating with each other?
} { return a + b; }
void main ()
};
void main()
{
{
ClassName object;
Addition obj;
object.member; cout << "Sum = " << sum() << endl;
} }
It follows the top-bottom flow of execution. It follows the bottom-top flow of execution.
Larger programs have divided into smaller modules The larger program has divided into objects.
called as functions.
The main focus is on solving the problem. The main focus is on data security.
It doesn’t support data abstraction. It supports data abstraction using access specifiers that
are public, protected, and private.
Overloading is not supported. It supports the overloading of function and also the
operator.
There is no concept of friend function and virtual It has the concept of friend function and virtual
functions. functions.