(A) Using inheritance
(B) Using Virtual function
(C) Using templates
(D) Both A & B
Tag: C++ Programming
What is the other name used for functions inside a class?
(A) Class function
(B) Member function
(C) Member variable
(D) Data member
Which of the following class allows only to create single object?
(A) Abstract class
(B) Singleton class
(C) Virtual class
(D) Friend class
Wrapping data and function in a single unit is known as?
(A) Polymorphism
(B) Encapsulation
(C) Abstraction
(D) None of the above
Destructor has the same name as the constructor and it is preceded by?
(A) !
(B) ~
(C) ?
(D) #
In OOP abstraction refers to?
(A) Showing only essential info of the application
(B) Hiding the details
(C) Reuse once written code again and again
(D) Both A & B
Default storage for local variables is?
(A) extern
(B) register
(C) auto
(D) static
You can never use address of __ variable.
(A) auto
(B) register
(C) static
(D) global