Describe private, protected and public?


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

Post New Answer

More C++ General Interview Questions

What is namespace & why it is used in c++?

0 Answers  


What are the basics concepts of OOPS?

1 Answers  


When volatile can be used?

3 Answers   Symphony,


What is c++ flowchart?

0 Answers  


What language does google use?

0 Answers  






Define 'std'.

0 Answers  


Why c++ is created?

0 Answers  


What are the different operators in C++?

3 Answers   HP,


class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.

2 Answers   Quark,


What is the size of a vector?

0 Answers  


List the advantages of inheritance.

0 Answers  


What is the full form of stl in c++?

0 Answers  


Categories