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

Can we use static method definitions in interfaces?

1039


What is composition? Explain the purpose of composition.

967


What is the difference between an interface and abstract class?

1114


State two differences between an object and a class.

1120


Can you create an instance for an abstract class?

941


How many methods are there in the externalizable interface?

1015


What are the rules to define a functional interface?

1051


Does a class inherit the constructor of its super class?

943


Why is java not fully objective oriented?

1063


Explain about realistic modeling?

973


What is data encapsulation and what is its significance?

903


Explain about the relationship between object oriented programming and databases?

937


Does java support multiple inheritance? if not, what is the solution?

974


Can encapsulation be called as a security device?

985


Write a note on encapsulation?

1000