Home

Which of the following relationship is known as inheritancerelationship?

A. ‘has-a’ relationship

B. ‘is-a’ relationship

C. association relationship

D. none of the above

You can do it
  1. The members of a class can be made private by
  2. The declaration int **var1; shows that
  3. The member of a structure can be accessed through a pointer by
  4. An object is an allocated space in memory.
  5. A base class is inherited by
  6. In C++, the stream base class is
  7. If class A is friend of class B and if class B is friend of class C, which of the following is…
  8. A constructor cannot be explicitly called.
  9. this' pointer has to be used while accessing data members in a member function.
  10. One of the major disadvantage with late binding is
  11. "[]" Operator is a unary operator.
  12. Data objects can be initialized when allocating memory using 'new'.
  13. Inline functions_____________ call overload.
  14. cc ___________ option is used only to create object file
  15. The getch() library function
  16. By using protected, one can create class members that are private to their class but
  17. Overloaded functions
  18. _______ argument(s) are passed in case of binary overloaded operators.
  19. The ?: can be used to replace
  20. In case of nested class, enclosing class can directly access the private data member of nested class.
  21. The scope resolution operator is -
  22. A destructor can have arguments like constructor.
  23. :: is known as
  24. Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
  25. In C++, the keyword auto can be used for
  26. Class is similar to a variable.
  27. Which of the following is true about const member functions?
  28. One of the important features of an abstract class is
  29. By default, C++ uses the following method of passing arguments
  30. Protected members cannot be inherited.