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

Can an array be null c#?

894


What is the difference between ienumerable and icollection?

874


What is a variable in c#?

860


Why dependency injection is used in c#?

902


What is the task perform by clr?

972


What is use of private class in c#?

921


What are handlers in c#?

914


How many types of constructors are there?

834


What do you mean by for each loop?

865


What is a class level variable in c#?

924


How do I create a multilanguage?

869


What is inheritance c#?

853


Explain about multithreading?

960


What is difference between association, aggregation and inheritance relationships?

865


How many dimensions can an array have?

839