explain oops concepts with examples?

Answer Posted / reddy

Abstraction: giving only important things hiding unnecessary
things.
data hiding: we can get by using private keyword
encapsulation: abstraction+data hiding(security)
polymorphism: flexibility
inheritance: reusability

Is This Answer Correct ?    116 Yes 44 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashset in java?

522


5 Coding best practices you learned in java?

626


What are the main features of java?

523


Can list have duplicates in java?

517


What are advantages of using Java?s layout managers than windowing systems?

1849






What is a stack class in java ?

599


What are static blocks and static initalizers in java ?

578


What is the use of put method?

512


What are the 5 types of research methods?

579


What are exception handling keywords in java?

599


What are the various access specifiers for java classes?

539


What is data type in computer?

513


Can we instantiate interface in java?

663


What is the use of math abs in java?

539


What is the size of integer?

579