(A) Specialization
(B) Generalization
(C) Inheritance
(D) Extension
Tag: OOP Mcqs
Without using Deep copy constructor, A __ problem can occur.
(A) System crash
(B) Memory leakage
(C) Dangling pointer
(D) All of the above
Class abc{ —– }; Is a valid class declaration?
(A) True
(B) False
If MyClass has a destructor what is the destructor named?
(A) MyClass
(B) ~MyClass
(C) My~Class
(D) MyClass~
The ability to derive a class from more than one class is called?
(A) Single inheritance
(B) Encapsulation
(C) Multiple inheritance
(D) Polymorphism
Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?
(A) Generalization
(B) Sub-typing
(C) Specialization
(D) Extension
In constant member function the type of this pointer is?
(A) Constant pointer
(B) Constant pointer to object
(C) Constant pointer to class
(D) Constant pointer to constant object
Which one is not a class association?
(A) Inheritance
(B) Simple association
(C) Composition
(D) Aggregation