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 b/w abstract and interface?

Answer Posted / bhaskar.mantrala

Interfaces are same as classes but their methods are
declared with out any body..... and definition
corresponding to that allmethods will write on
implementation class(i.e)single class.BUT
Eg:
interface interfacename
{
//Declarations only
//first method
//second method
..
..
//n-th method
//final variables
}
class classname implements interfacename
{
//Definitions of ALL methods present in interfacename
}
Abstract class also has same as interface and definitions of
all those methods may not be present in single extended class.

And we doesn't create an object to class that is abstract.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and why is it important?

1042


What is coupling in oop?

1035


What are the two different types of polymorphism?

1145


what is difference between class template and template class?

2661


to find out the minimum of two integer number of two different classes using friend function

2143


Which type does string inherit from?

1106


2. Give the different notations for the class.\

2166


Why do we use class in oops?

966


What is the difference between inheritance and polymorphism?

1114


Why do we use encapsulation in oops?

1042


How to use CMutex, CSemaphore in VC++ MFC

4786


what are the different types of qualifier in java?

2276


Can a destructor be called directly?

1076


What is stream in oop?

1302


Can abstract class have normal methods?

1050