Vidyalelo
C++ Programming · Q54

Object Oriented Programming in C++

Programming · C++ Programming · question 54

Q54

Which of the following feature of OOPs is not used in the following C++ code? class A int i; public: void print()cout<<"hello"<<i; class B: public A int j; public: void assign(int a)j = a;

A.
Abstraction
B.
Encapsulation
C.
Inheritance
D.
Polymorphism
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board