Difference Between Structured Programming and Object Oriented Programming
Difference Between Structured Programming and Object Oriented Programming
Why do we need Object Oriented Programming when all tasks can be performed with SP?
Security
OOP is secured because we can hide information as required. But in SP, this feature is not available.
Access Modifiers
There are three types of access modifiers: public, private, and protected.
A public member is accessible from anywhere outside the class but within a program
A private member variable or function cannot be accessed, or even viewed from outside the class. Only
the class and friend functions can access private members.
A protected member variable or function is very similar to a private member but it provided one
additional benefit that they can be accessed in child classes which are called derived classes.