Note:Includes all required header files
using namespace std;
class Base
{
public:
Base(){}
~Base(){}
protected:
private:
};
class Derived:public Base
{
public:
Derived(){}
Derived(){}
private:
protected:
};
int main()
{
cout << "Executed" << endl;
}
Which among the following best describes the Inheritance ?
How many basic types of inheritance are provided as OOP feature ?
Which among the following best defines single level inheritance ?
Which among the following is correct for multiple inheritance ?
Which programming language doesn’t support multiple inheritance ?
Which among the following is correct for a hierarchical inheritance ?
Which is the correct syntax of inheritance ?
Which type of inheritance leads to diamond problem?
Which access type data gets derived as private member in derived class ?
If a base class is inherited in protected access mode then which among the following is true ?