Answer Posted / jasbir singh
when a single class is being inherited by a class, it is
called single or simple inheritance.
example:
class a
{
public:
int x,y;
};
class b: public a //// example of simple inhieritence
{
public:
int z;
}
| Is This Answer Correct ? | 91 Yes | 19 No |
Post New Answer View All Answers
What is the main purpose of inheritance law?
When not to use object oriented programming?
Explain the advantages of inheritance.
officer say me - i am offered to a smoking , then what can you say
How is class defined?
What is difference between polymorphism and inheritance?
Can we create object of interface?
What is encapsulation in ict?
How to hide the base class functionality in Inheritance?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Give two or more real cenario of virtual function and vertual object
What is abstraction example?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is coupling in oop?