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

Abstract Class:

1. Abstract Class Can contain Abstract Methods and Non-
Abstract Methods.

2. When a Non-Abstract Class is Inherited from an Abstract
Class, the Non-Abstract Class should provide all the
implementations for the inherited Abstract Method.

Interface:

1. Interface is nothing but Pure Abstract Class ie
Interface can contain only the function declaration.

2. All the members of the interface are Public by Default
and you cannot provide any access modifiers.

3. When a class is inherited from the interface, the
inherited class should provide actual implementations for
the inherited members.

Is This Answer Correct ?    80 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the max value of int32 in c#?

858


What is string method in c#?

850


Is static class thread safe in c#?

889


How more than one version of an assembly can keep in same place?

909


What is a static in c#?

866


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

813


What does return do in for loop?

870


How does the lifecycle of Windows services differ from Standard EXE?

953


What is the difference between c and c# programming?

869


Why array is faster than arraylist in c#?

939


What is getenumerator?

802


What is gac? What are the steps to create an assembly and add it to the gac?

858


How big is an int16?

835


What is difference between private and protected in c#?

890


Define Virtual folder?

967