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 differances between a abstract calss and
interface

Answer Posted / kanan

Abstract class: You can inherit only one class.
Interface: You can inherit more than one interface.

Abstract class: It contains both completed and uncompleted
(abstract) methods.
Interface: It only contains uncompleted methods (methods
without body).

Abstract class: Access modifiers are there for methods and
properties.
Interface: It does not have access modifier for methods or
properties. By default they are public.

Abstract class: Fast
Interface: Require more time to find actual method in classes.

Abstract class: It can contain fields and constants.
Interface: no fields can be defining in interface.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when someone says I oop?

1077


How do you explain polymorphism?

1086


What is encapsulation in ict?

1076


how to get the oracle certification? send me the answer

2169


How can you overcome the diamond problem in inheritance?

1194


What are oops methods?

1033


What is encapsulation with example?

1129


What is pointer in oop?

1067


c++ program to swap the objects of two different classes

2429


What is the real time example of inheritance?

1161


How Do you Code Composition and Aggregation in C++ ?

25502


What does and I oop and sksksk mean?

1181


How long to learn object oriented programming?

1108


What is encapsulation c#?

1095


What is ambiguity in inheritance?

1130