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
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is polymorphism explain?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is encapsulation and abstraction? How are they implemented in C++?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
Is enum a class?
What is class and object with example?
How do you achieve runtime polymorphism?
Give two or more real cenario of virtual function and vertual object
What is abstraction in oop with example?
What is an advantage of polymorphism?
What is encapsulation in oops?
Can a destructor be called directly?
What is meant by multiple inheritance?
What is the benefit of oop?