Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is difference between interface inheritance and class
inheritance ?

Answers were Sorted based on User's Feedback



What is difference between interface inheritance and class inheritance ?..

Answer / mohan kumar e.

In .net two types of inheritance is there.One is interface
inheritance and class inheritance. Multiple inheritance is
possible with the help of interfaces.

Is This Answer Correct ?    41 Yes 21 No

What is difference between interface inheritance and class inheritance ?..

Answer / anand

1. we can inherit multiple ingerface to derived class but
only one class can inherit at a time
2. we must give implementation for interface members in
derived class. but it optional for class inheritance

Is This Answer Correct ?    21 Yes 7 No

What is difference between interface inheritance and class inheritance ?..

Answer / senthil kumar

In interface inheritance all the methods should be
public.but in class inheritance mey be user defined.

Is This Answer Correct ?    19 Yes 8 No

What is difference between interface inheritance and class inheritance ?..

Answer / jyothish vakkom

in c# thr is no multiple inheritanc.so we use intefaces in
c# 4 implimenting multiple inheritance..

Is This Answer Correct ?    13 Yes 2 No

What is difference between interface inheritance and class inheritance ?..

Answer / govind verma

there are mainly two types of inheritance--
1) Implementation inheritance--when a class is derived from
another class such that it inherits all the members of base
type.
2) Interface Inheritance--when a type inherits only
signature of functions of another type . it does not uses
constructor.

Is This Answer Correct ?    11 Yes 3 No

What is difference between interface inheritance and class inheritance ?..

Answer / sudheer

An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

Is This Answer Correct ?    5 Yes 1 No

What is difference between interface inheritance and class inheritance ?..

Answer / naag algates

1. Derived class can inherit from only one base class(because no multiple inheritance)
2. Base class(or any class) can inherit any number of interfaces.
3. Single class can support multiple interface and multiple class can support same interface.

Is This Answer Correct ?    5 Yes 1 No

What is difference between interface inheritance and class inheritance ?..

Answer / kanan

1) C# doesn't support multiple inheritance, by inheriting
interface we can overcome this problem, as we can inherits
as many interface as we want.

2)implementation of class methods is not must like interface.

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More C Sharp Interview Questions

int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?

5 Answers  


What are the value types in c#?

0 Answers  


What is event and delegates in c#?

0 Answers  


what is a delegate? what it is used for?

13 Answers   Choice Solutions, TCS,


What is an abstract class c#?

0 Answers  


what is a constructor?

5 Answers   Amazon, Amdocs, Choice Solutions,


What is the difference between ref and out in c#?

0 Answers  


What is session c#?

0 Answers  


What is sealed class in c#?

0 Answers  


What is short circuit logical evaluation?

1 Answers   TCS,


Explain the differences between static, void and public in c#?

0 Answers  


What is difference between asp net and c# net?

0 Answers  


Categories