explain oops concepts with examples?
Answer Posted / k.rajasekhar naidu
OOPS Concepts:
1) Encapsulation: Wrapping up of data and methods in to a
single unit is called as encapsulation.
2) Abstraction: It Supports Abstarction
3) Inheritence:Process of Aquiring properties from one
object to another without changes.
4) Polymorphism:Process of aquiring properies from one
object to anotherwith changes.
poly=many
morphism=forms
5) Message Passing:message passing is possible from one
object to another.
6) Robust and Secure: every object is strong one.
every object is secure one with their access specifiers.
| Is This Answer Correct ? | 258 Yes | 120 No |
Post New Answer View All Answers
What is the most important feature of java? What is an interface?
What is the similarity between dynamic binding and linking?
Can we override data members in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Define canvas?
What is the use of a copy constructor?
What is boolean used for?
Explain the importance of finally over return statement?
What is the byte range?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Does a class inherit the constructors of its superclass in java programming?
How to write custom exception in java?
Why does java have two ways to create child threads? Which way is better?
Can a final variable be manipulated in java?
Can we have any code between try and catch blocks?