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 are sealed modifiers?

1053


Does PowerShell support OOPs?

1014


Can I implement polymorphism using abstract class?

978


Can you explain primordial class loader?

915


What is garbage collection(gc)?

968


What are a base class, subclass, and superclass?

986


How to differentiate between a CreateObject() and GetObject() ?

1006


Why we use oops concepts? What is its advantage?

985


Explain about parametric polymorphism?

1004


Can we have a default method definition in the interface without specifying the keyword "default"?

956


What is the difference between an Abstract class and Interface?

1036


Explain basic concepts of OOPS?

897


Explain about the analysis phase?

971


How many methods are there in the externalizable interface?

999


Explain colloboration

1044