+ 2

What is the difference between incapsulation, constructor and abstraction in c++?

9th Jun 2020, 8:16 PM
Chhaya Agrawal
Chhaya Agrawal - avatar
2 ответов
+ 2
Abstraction is an OOP concept that focuses only on relevant data of an object. It hides the background details and emphasizes the essential data points for reducing the complexity and increase efficiency. Encapsulation is a method of making a complex system easier to handle for end users. The user need not worry about internal details and complexities of the system. Encapsulation is a process of wrapping the data and the code, that operate on the data into a single entity. C++ constructor is used to initializing the member variables of an instance of a class that is the object of a class. 
9th Jun 2020, 8:26 PM
Hardik Sharma
Hardik Sharma - avatar
11th Jun 2020, 6:13 PM
A S Raghuvanshi
A S Raghuvanshi - avatar