explain oops concepts with examples?
Answer Posted / mudassir shakil
1.Encapsulation-means wrapping or grouping data in single e
unit.
e.g. if you are planning to do computer course in a
institute but you don't know which course is going on in the
institute.But they have printed paper in which all the
courses are written like java,.net etc. This is called
encapsulation.
2.Abstraction-means hiding non essential information.
e.g.-Consider the above example.you have decided for java
the you enters in the institute and tell your course.The
person will explain you about java like duration;fee
structure etc.In simple words abstraction means information
according to the user.
3.Polymorphism-different existence.
e.g-you are a son,brother,uncle,husband and friend at
different situation.
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
How to compare strings in java?
What do you mean by scope of variable?
Why is inheritance used in java?
How do I know if java is installed?
Can we call the constructor of a class more than once for an object?
what is meant by abstract class?
What is the meaning of variable in research?
What do you understand by the bean persistent property?
What is an eror in java?
What is t in generics in java?
What is the difference between reader/writer and inputstream/output stream?
What are the application of stack?
What is a boolean used for?
Explain 5 io best practices?
What is the program development process?