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 void class in java?

618


Can a static block throw exception?

734


Where to store local variables?

664


What is linked hashmap and its features?

628


what are the states associated in the thread? : Java thread

693






How many bytes is 255 characters?

640


Why java is object oriented?

678


Write a program to calculate factorial in java?

664


What is local class in java?

634


What do you mean by local class?

622


Is there any case when finally will not be executed?

612


What is jvm? How its run?

757


What is ascii code?

733


Why do we need wrapper classes?

678


Define nashorn in java8.

667