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
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board