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 / umesh

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 ?    10 Yes 0 No

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

Answer / nikhil

Difference

1. Interface doesn't allow accessibility modifier where as
we can specify accessibility modifier (public, private,
protected) for an abstract class.

2. Interface doesn't provide the implementation of the
members declared. This is not the case with abstract class

3. A class can inherit one and only one abstract class,
where as a class can implement one or more interfaces

Is This Answer Correct ?    10 Yes 0 No

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

Answer / rambabu gonela

java does't support multiple inheritance..to overcome this
problem.. java introduce new concept that is interface,
we cannot intantiate both interface and abstractclass.1)by
default in interface variables are public,static and final,
in abstract class we have to declare explicitly 2) methods
in interface public,nonstatic and abstract,where as in
abstract class we have to give....
3)we can implements more than one interfaces.. but we can
extends only one class..

Is This Answer Correct ?    7 Yes 5 No

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

Answer / narender reddy soma

Apart from usual differences between class and interface,
An abstract class is abstract in nature meaning - You can
have abstract methods and concrete as well.So what? you can
provide the generic implementation in concrete method and
leave abstract methods to sub class for
customization.Sounds good?

So, being abstract class it can exist as customized
implementation of its sub class.Not alone as it has
abstract method which doesnt have implementation hence
making it incomplete.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / kirti

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

Is This Answer Correct ?    0 Yes 0 No

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

Answer / mahendran

single class can implement multiple interface
interface do not come inheriting chain

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Sharp Interview Questions

Explain what is copy constructor?

0 Answers   BPL,


Can scriptable objects have methods?

0 Answers  


Define parsing?

0 Answers  


What are anonymous functions in c#?

0 Answers  


Which is executed if an exception has not occurred?

0 Answers   Siebel,


What is the difference between new and override in c#?

0 Answers  


how to use msflexgrid in asp.net

1 Answers   nSoft, Unichem,


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

0 Answers  


What do you understand by 'access specifiers' in C#?

0 Answers   Genpact,


How to reduce image resolution in C#?

0 Answers   IBM,


How can I check the type of an object at runtime?

0 Answers  


What is a nullreferenceexception and how do I fix it?

0 Answers  


Categories