Difference between multi-level and multiple inheritance?

Answer Posted / rajesh kumar k

Multiple inheritance :
More than one Base Class used in Derived Class
Example:
Class A (Base Class)
Class B (Base Class)
Class C (Base Class)

Class D (Derived Class)
Inherit Class A , Class B, Class C
----------------------------------------------------------
Multilevel Inheritance :
Base Class Used Derived Class The Same again we are using as
Base Class
Example :

Class A (Base)
Class B Inherit Class A (Derived Class for Class A
And Base Class for Class C)
Class C Inherit Class B

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a C# class we have a SortedList member m_addinProjects we want to provide an iterator to allow the consumer of this class access to the items in the collection. Please provide an iterator method for the AnalyzeAddinsDLL class below and an example of how it would be used. namespace AnalyzeAddinsDLL { public class AllAddInProjects { private SortedList m_addinProjects; public AllAddInProjects() { m_addinProjects = new SortedList(); } } }

1810


Can datetime be null c#?

484


What is the implicit name of the parameter that gets passed into the class set method?

484


What is the interface in c#?

510


What do you mean by string objects are immutable?

502






what is IComparable

549


What is an abstract class c#?

484


What is using directive in c#?

496


How do you declare a method in c#?

491


What is 8 bit signed integer?

476


What do you mean by casting a data type?

542


What is an escape sequence? Name some string escape sequences in c#.

516


Does c# have its own class library?

548


How can you access a private method of a class?

507


What is the difference between method and constructor in c#?

456