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 the difference between Abstract and Interface?

Answer Posted / ntmohare

Abstract Class:
(1)it contains both abstract methods and non abstract methods
(2) object can't be created just through reference we are calling all the methods
(3) it is implemented by subclass i.e which class is extended from this
abstract class contains only nonabstract this situation also code will compile fine but problem at runtime
abstract can't be declared with Final Synchronized Native just your requirements you implement some methods in the abstract class
this class also contain Constructor

========
Interface contains all abstract methods
all methods compulsory implemented by particular class
interface does not contain Constructor

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What exactly happens when we debug and build the program?

2423


Give an example to show for hiding base class methods?

857


What is the difference between abstraction and encapsulation in c#?

952


What is difference between constants and readonly in c#?

1035


Can you have parameters for static constructors?

951


What are the 3 different types of arrays?

1031


Why do we need constructor in c#?

941


Can I call a virtual method from a constructor/destructor?

889


How do generics work in c#?

910


What is static classes in c#?

1010


What is arraylist c#?

951


How many parameters can a method have c#?

930


Differentiate between object pooling and connection pooling in c#?

997


What is CLR and its application.?

1047


What is ulong in c#?

1034