Answer Posted / jitendra rajurkar
In .Net realm a child class can inherit methods and
properties from only one parent class and that parent class
can be either abstract class or any other class.Also Child
class can inherit methods and properties from multiple
interfaces.
class DerivedClass:AbstractClass,InterafaceA,InterfaceB
{
public void main()
{
DerivedClass obj o = new DerivedClass();
o.MethodfromAbstractclass;
o.MehtodfromInterfaceA;
o.MethodfromInterfaceB;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is class encapsulation?
Can abstract class have normal methods?
What is the advantage of oop over procedural language?
program for insertion ,deletion,sorting in double link list
why reinterpret cast is considered dangerous?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
When not to use object oriented programming?
What is inheritance write a program to show use of inheritance?
What is difference between abstraction and encapsulation?
what are the realtime excercises in C++?
Why do we use class in oops?
What is polymorphism in oop example?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is abstract class in oop?
explain sub-type and sub class? atleast u have differ it into 4 points?