What are the OOPS concepts in Java

Showing Answers 1 - 4 of 4 Answers

plk

  • Sep 11th, 2005
 

the oops concepts in java are encapsulation,inheritence, polymorphism.

  Was this answer useful?  Yes

oops concepts in java are1)Encapsulatio-i.e data hiding-programmer can prevent access to his code thtough private access specifiers2)inheritance-Code reusability3)data abstraction4)polymorphism-Which method will be executed will be decided on run time

  Was this answer useful?  Yes

Gupta Pravin Kumar

  • Oct 6th, 2006
 

INHERITANCE: Inheritance is the process by which one object can acquire the properties of another. The best example for this is C,C++, and JAVA languages itself. Java is being derived from C++ which in return is being derived from C from where it inherits all the capabilities of C,C++ and also add the features of its own.POLYMORPHISM--The name itself suggests that ?POLY? stands for many and ?MORPHISM? stands for forms. Polymorphism is the quality that allows one name to be used for two or more related but technically different purposes. In general giving multiple interfaces to a function or an operator is called ?POLYMORPHISM?.ENCAPSULATION: It is the data binds together code and the data it manipulates and keeps them safe from outside interference and misuse. When data and code are linked together in this fashion, an object is created. In other words an object is the device that supports encapsulation.

  Was this answer useful?  Yes

praju86

  • Sep 25th, 2010
 

Inheritance is one of the concepts which makes Java an OOP language. Two other important features are


1.POLYMORPHISM-concept which permits "single interface, multiple functionalities".
2.ENCAPSULATION-mechanism that binds together the code and the data which the code manipulates on and keeps both safe from outside interference and misuse.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions