What is protected inheritance?


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

Post New Answer

More C++ General Interview Questions

List the special characteristics of constructor.

0 Answers  


what are the types of Member Functions?

0 Answers  


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 an explicit constructor?

1 Answers  


What are the different data types present in C++?

4 Answers  


Can you write a function similar to printf()?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. x =+ 7;

2 Answers  


Which software is best for programming?

0 Answers  


Explain the difference between class and struct in c++?

0 Answers  


Explain calling an object's member function(declared virtual)from its constructor?

1 Answers  


Write a Program to find the largest of 4 no using macros.

0 Answers  


What are the two types of comments?

0 Answers  


Categories