what are the oops concept in java explain with real time
examples
Answer Posted / l.priya
We have the following oops concepts like
1.Abtsrction
2.Encapsulation
3.Inheritance
4.Polymorphism
Abstraction:
hiding unnecessary data from the users and making the
application as user friendly then it is called as
abstrcation
ex:Any mail account the user is simply filling the form and
he don't know ho it is developed.
Encapsulation:
Wrapping the data and code as a single unit is called as
encapsulation.
ex:Capsule is the best real time example for it.In it we
will have two types of drugs combined as single capsule.
Inheritance :
Acquiring the properties from one class(base class or parent
class)to another class(derived class or child class)is
called as inheritance.
Ex:Inventing laptop from desktop.
Polymorphism:
Single entity behaving in different forms is called as
polymorphism
ex:Mouse is for click the buttons and dragging the bars or
placing the pointer in a particular place.
| Is This Answer Correct ? | 57 Yes | 12 No |
Post New Answer View All Answers
Can a top level class be private or protected?
Is null a string or object in java?
Can a static class have a constructor?
What is flush buffer?
What is field name?
What happens to the Exception object after handling an exception?
What is the difference between this() and super() in java?
What is the difference between the file and randomaccessfile classes?
What is navigable map in java?
What is the generic function?
What is :: operator in java 8?
Can you call a method in a method?
What is the statements?
Is java 1.7 the same as java 7?
What is super in java?