What is encapsulation in C++? Give an example.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the disadvantage of using a macro?

0 Answers  


What are the 2 main types of data structures?

0 Answers  


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

0 Answers  


How do you initialize a string in c++?

0 Answers  


Explain storage qualifiers in c++.

0 Answers  






Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.

3 Answers  


What is the difference between an enumeration and a set of pre-processor # defines?

0 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

0 Answers  


What are the operators in c++?

0 Answers  


What is the basic difference between C and C++?

0 Answers   NIIT,


Is c++ slower than c?

0 Answers  


What are advantages of c++?

0 Answers  


Categories