Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

C++ Programming

Cpp Programming Quiz 59 – Which of the following concepts provides facility of using object of one class inside another class?

Question: Which of the following concepts provides facility of using object of one class inside another class?
[A]. Encapsulation
[B]. Abstraction[C]. Composition
[D]. Inheritance

Answer: Option C

Cpp Programming Quiz 59 – Which of the following concepts provides facility of using object of one class inside another class? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming Quiz 60 – Which of the following is used to make an abstract class?

Question: Which of the following is used to make an abstract class?
[A]. Declaring it abstract using static keyword.
[B]. Declaring it abstract using virtual keyword.[C]. Making at least one member function as virtual function.
[D]. Making at least one member function as pure virtual function.

Answer: Option D

Cpp Programming Quiz 60 – Which of the following is used to make an abstract class? Read More »

Cpp Programming, OOPs Concepts

Cpp Programming 67 – How many types of polymorphisms are supported by C++?

Question: How many types of polymorphisms are supported by C++?
[A]. 1
[B]. 2[C]. 3
[D]. 4

Answer: Option B

Explanation:

The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates).

Cpp Programming 67 – How many types of polymorphisms are supported by C++? Read More »

Cpp Programming, OOPs Concepts