Explain encapsulation in C++.
Answer / Amit Kumar Rai
Encapsulation is a mechanism in C++ that binds the data and functions that manipulate the data into a single unit, called a class. This prevents direct access to the data members and forces the use of member functions, ensuring data privacy and integrity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a C++ Program to find Addition of Two Numbers.
What is the difference between creating an object, using 'new' and using 'malloc'?
What is a constructor initializer list?
Explain the difference between C and C++.
explain the term 'resource acquisition is initialization'?
What is data abstraction? How is it implemented in C++?
What is constant keyword in C++? Illustrate its various uses.
1 Answers Akamai Technologies, Infogain,
Write a program that ask for user input from 5 to 9 then calculate the average
Explain function prototypes in C++.
What is the meaning of the following declaration: int *const *const *i?
How to reverse a string in C++
What are the advantages/disadvantages of using #define?