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 are the difference between abstract class and interface?

Answer Posted / muinuddin khan

In abstract class aleast one method must be abstract(only
declared not define).we can create object of abstract class.
if we want to use this class then we have to inherit it.


In interface all the method must be abstract(only define).
using interface we can achieve multiple inheritence.
we use interface where one class cannot extend more than
one class(in java).

Is This Answer Correct ?    15 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can cross site request forgery csrf be prevented?

996


What is overloading and overriding in oop?

1075


Explain me what is the difference between explode() and split() functions?

1159


Does php support inheritance?

999


Is PHP an open source software?

1105


What types of Data Can Be Used as Array Keys?

1072


Why constructor is not overridden?

1068


How can you upload a file using php?

1156


Tell me what does the initials of php stand for?

1011


What is the use of Mbstring?

1048


What are php parameters?

1059


How do I run a php file?

1023


Which is useful for method overloading?

1185


What is the difference between echo, print and printf()?

1085


What is php addslashes?

1164