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 encapsulation oop?
What is abstract class in oop?
What is destructor in oop?
What is overloading in oops?
What is difference between oop and pop?
What is advantage of inheritance?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is persistence in oop?
#include
Why do pointers exist?
What does enum stand for?
Why is abstraction needed?
Is data hiding and abstraction same?
What is class encapsulation?
what are the ways in which a constructors can be called?