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
Why do we use class in oops?
What do you mean by overloading?
Where is pseudocode used?
Which type does string inherit from?
Why do pointers exist?
What are the 5 oop principles?
What is the problem with multiple inheritance?
What is super in oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
How do you use inheritance in unity?
Which language is not a true object oriented programming language?
How to improve object oriented design skills?
What makes a language oop?
What is the difference between encapsulation and polymorphism?
What is encapsulation selenium?