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 main difference b/w abstract class and interface

Answer Posted / naga~1417

A class implementing an interface must implement all of the
methods defined in the interface, while a class extending
an abstract class need not implement any of the methods
defined in the abstract class. Additionally, a class
extending an abstract class can implement an infinite
number of it's own methods.

Abstract class does not support Multiple Inheritance .
Interface supports Multiple Inheriatnce..

The differnce is that in interface all are public but in
abstract class u can have private and protected members

Abstract class contains the method defination of the some
methods. but Interface contains only method declaration, no
defination

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an object subclass another object?

1065


What is java literals?

1109


How does compareto work in java?

1024


How do you compare values in java?

1012


What is the difference between static and global variables and also define what are volatile variables?

1030


Does treeset allow null in java?

934


what is thread in Java ?

1139


What does += mean coding?

909


What is operator overloading. Is it is supported in java?

1000


How can we access some class in another class in java?

978


Is java good for beginners?

998


What is thread life cycle in java?

1047


How would you dynamically allocate memory to an array?

1025


Write a program to print fibonacci series up to count 10.

885


How many bits is a double?

974