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?s the difference between an interface and abstract
class?

Answers were Sorted based on User's Feedback



What?s the difference between an interface and abstract class?..

Answer / sunitha

Interface - All Methods in the Interface are abstract
Methods.So the Access Modifier is public by default which
helps the Class ABC Implementing the Interface to define
the code for the methods

Abstract - > Protected Methods can be defined & implemented
in Abstract Class. This class does some implementation of
its own & leaves the remaining implementation to the
Derived Class

1.Multiple Inheritance is possible through Interface only.
2.If we add any new method in the interface, then all the
derived class has to be altered to include the
implementation of the method.
3.Interface is on the Top Level

Is This Answer Correct ?    5 Yes 0 No

What?s the difference between an interface and abstract class?..

Answer / guest

In the interface all methods must be abstract; in the
abstract class some methods can be concrete. In the
interface no accessibility modifiers are allowed, which is
ok in abstract classes.

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More C Sharp Interview Questions

Explain what is the smallest unit of execution in .net?

0 Answers  


Define sealed classes in c#?

0 Answers  


Can a struct inherit from another struct or class in c#?

0 Answers  


What are the ways to deploy an assembly?

3 Answers  


what is the lifespan of the items stored in viewstate ?

4 Answers  


what is Anonymous Method.? and What is shadowing?

2 Answers   ATS, Infosys,


What happens if you add duplicate elements to a set?

0 Answers  


Structs are largely redundant in c++. Why does c# have them?

0 Answers  


Describe ways of cleaning up objects in c#.

0 Answers  


Why can?t you specify the accessibility modifier for methods inside the interface?

5 Answers  


Explain about throw keyword?

10 Answers   Emphasis, HCL, Satyam,


What is the difference between ienumerable and icollection?

0 Answers  


Categories