logo

Crowdly

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on moovit.vit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!