Page 1 of 1

Which of the following feature of OOPs is not used in the following C++ code?

Posted: Wed Jul 13, 2022 7:50 pm
by answerhappygod
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