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?

Answers were Sorted based on User's Feedback



what are the main underlying concepts of object orientation?..

Answer / shahir

Mainly there are four concepts for OOAD.
1.Abstraction -grouping of data and behaviour(operations)
into a conceptual object.
2.Encapsulation -Its the implementation mode of data
abstraction.With encapsulation, we can accomplish data
hiding
3.Polymorphism -Polymorphism refers to the process whereby
an object invokes a method of another object in a common
manner (with the same name) without understanding or caring
how it is accomplished.

4.Inheritance-When an object is derived from another
object. It inherits all the properties etc

Is This Answer Correct ?    11 Yes 2 No

what are the main underlying concepts of object orientation?..

Answer / 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

More OOAD Interview Questions

Name the different creational patterns in object oriented design?

0 Answers  


Why is java not fully objective oriented?

0 Answers  


What are the limitations of oops?

0 Answers  


What is operator overloading?

1 Answers  


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

0 Answers  


What is difference between encapsulation and abstraction?

0 Answers  


What are inner classes and what is the practical implementation of inner classes?

0 Answers  


What are all the operators that cannot be overloaded?

0 Answers  


explain the difference between operator overloading and function overloading.

0 Answers   TCS,


Can a function be overloaded based on return types?

0 Answers   iNautix,


Can we override static methods? Why?

0 Answers  


Define exceptions?

0 Answers  


Categories