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...


An abstract class is inherited, an Interface also
inherited(multiple inheritance), How it differences.

Answers were Sorted based on User's Feedback



An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / kidkid

An abstract class has its properties but an interfaces has
only method (abstract method).

However A class can inherit only one abstract class but can
inherit one or more interface.

Is This Answer Correct ?    10 Yes 1 No

An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / ashish p

Following are the differences between abstract and
interfaces :-
1) Abstract classes can have concrete methods while
interfaces have no methods implemented.
2) Interfaces do not come in inheriting chain, while
abstract classes come in inheritance

Is This Answer Correct ?    1 Yes 0 No

An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / raman sharma

Abstract class is just like a normal class but we cannot create its object. Abstract class has abstract methods as well as the concrete methods.

Interface has the only abstract properties and methods means they are not defined in the interface but are implemented in the child classes

Is This Answer Correct ?    2 Yes 2 No

An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / priya arun

abstract class is just like a normal class ,but we can't
instantiate an abstract class.
One class can inherit one abstract class.

but interface is just define the signature..it doesnt have
any body.So the methods declared in the interface must
implement in the derived class.

Once we defined the interface any number of class can
implement it...

a class can implement more than one interface also.Through
this also we can achieve multiple inheritance in .net.

Is This Answer Correct ?    0 Yes 0 No

An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / prem

Abstract Class

An abstract class is a special kind of class that cannot be
instantiated. So the question is why we need a class that
cannot be instantiated? An abstract class is only to be
sub-classed (inherited from). In other words, it only allows
other classes to inherit from it but cannot be instantiated.
The advantage is that it enforces certain hierarchies for
all the subclasses. In simple words, it is a kind of
contract that forces all the subclasses to carry on the same
hierarchies or standards.

Interface.............

An interface is not a class. It is an entity that is defined
by the word Interface. An interface has no implementation;
it only has the signature or in other words, just the
definition of the methods without the body. As one of the
similarities to Abstract class, it is a contract that is
used to define hierarchies for all subclasses or it defines
specific set of methods and their arguments. The main
difference between them is that a class can implement more
than one interface but can only inherit from one abstract
class. Since C# doesn&#65533;t support multiple inheritance,
interfaces are used to implement multiple inheritance.

Is This Answer Correct ?    0 Yes 0 No

An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differenc..

Answer / abhijit

Interface can not be inherited.

Is This Answer Correct ?    2 Yes 19 No

Post New Answer

More C Sharp Interview Questions

What is cookies in c# asp net?

0 Answers  


What is parameter c#?

0 Answers  


Can a class be private in c#?

0 Answers  


Is hashset serializable c#?

0 Answers  


Can variables defined in interface. If yes how we can call/use it in class.

2 Answers   Synechron,


What is the lock statement in c#?

0 Answers  


Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }

2 Answers   Proteans,


What is list array in c#?

0 Answers  


How do you prevent a class from being inherited in c#?

0 Answers  


What are the steps to make an assembly to public?

0 Answers  


Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

0 Answers  


What is object type in c#?

0 Answers  


Categories