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 main underlying concepts of object orientation?

Answer Posted / prasi

Abstraction - Interfaces are the best examples of
abstraction .
Encapsulation - Classes are best examples of encapsulation.

Generally we encapsulate what varies &
we abstract commonalities...

One more thing, You should always subclass for behabiours..
you should never subclass for properties / attributes. If
only properties vary, then you have got to encapsulate them
in somewhere else e.g. in a class or in some collection
object like - Properties in Java / Map

Hope this helps..

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between polymorphism and normalization?

1990


What is meant by function overloading and function overriding?

926


What is the purpose of late binding in object-oriented programming?

937


What is polymorphism and abstraction?

1014


What is a subclass?

967


What is the difference between aggregation and composition?

901


What is the main difference between overloading and overriding?

1022


What is the main advantage of using inheritance?

1003


Explain about the analysis phase?

931


Which oops concept is used as reuse mechanism?

3477


Difference between class and an object?

924


Explain about polymorphism?

978


What is the benefit of using inheritance?

990


What is the difference between an error and an exception?

980


What is the difference between class inheritance and interface inheritance?

1029