Answer Posted / mohit karasanbhai kanani
hierarchical inheritance
Dedination:
One comman class have a two derived class.
Syntax:
class (classname)k /* base class */
{
/*defination of class k*/
};
class (classname)m:public class k /* derive class (here
derive class of class k)*/
{
/*defination of class m*/
};
class (classname)p:public class k /* derive class (here
derive class of class k)*/
{
/*defination of class p*/
};
void main
{
}
note: here class name k,p,m are only for example
| Is This Answer Correct ? | 23 Yes | 5 No |
Post New Answer View All Answers
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Can we create object of interface?
Templates mean
What is coupling in oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is a class in oop?
Can main method override?
What are oops functions?
What is inheritance in simple words?
Why interface is used?
What is polymorphism programming?
What is pure oop?
Is html an oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Describe these concepts: Polymorphism, Inheritance and Abstraction.