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 interface and abstraction?

Answer Posted / sajid

interface:
in interface,all methods must b abstract,by default all
members are PUBLIC,cant b implimented infact derived class
impliments its methods
interface can use multiple interface
abstract:
it is just like interface,not imolimented by itself,only
derived class can impliment abstract class or abstract
methods,abstract methods can b private unlike interface,cant
allow multiple inheritance

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is copy constructor?

1068


Why do we parse in c#?

942


How do you specify a custom attribute for the entire assembly?

1030


Can we overload the main method in c#?

999


What are the classes contained in a single .NET DLL ?

975


How does return work in c#?

1015


What are the drawbacks of extending an interface as opposed to extending a class?

944


Is string a data type in c#?

894


Give an example to show for hiding base class methods?

895


If the original method is not static you can declare an override method to be static or not?

992


How many aware interfaces are there?

1017


What is the difference between a variable and a literal?

1115


Why References are stored on heap and variables on stack?

981


Are objects passed by reference in c#?

1042


Why abstract class can not be instantiated?

928