(A) 01
(B) 02
(C) 03
(D) 04
Tag: C++ Programming Language
How many types of inheritance are there in C++?
(A) 01
(B) 02
(C) 03
(D) 05
What is the syntax of inheritance of class?
(A) Class name
(B) Class name : access specifier
(C) Class name : access specifier class name
(D) None of the above
Which of the following OOP’s features to provide code reusability?
(A) Polymorphism
(B) Encapsulation
(C) Inheritance
(D) None of the above
Function that can be inherited from base class in C++ program?
(A) Destructor
(B) Constructor
(C) Static
(D) None of the above
Base class and derive class relationship comes under?
(A) Polymorphism
(B) Inheritance
(C) Encapsulation
(D) Abstraction
The data members and member functions of a class are by-default?
(A) Protected
(B) Private
(C) Public
(D) Both B & C
Which among following is a valid class declaration?
(A) Class A{}
(B) Class A{};
(C) Class A
(D) Class A();