Question Detail

Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited
Similar Questions :

1. Difference between static and dynamic memory allocation is

  • In static memory allocation memory to be allocated in preknown
  • In dynamic memory allocation memory to be allocated in preknown
  • There is no differnece
  • Not exact difference is mentioned

2. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

3. Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0

4. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>

5. All members of class have which access to its members

  • private
  • public
  • protected
  • depends
Read more from - C++ Programming Questions Answers - Chapter 1