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
Difference between current previous versions of Java?
Can we extend singleton class in java?
What is a method header?
What is merge sort in java?
What are inbuilt functions in java?
Can set contain duplicates?
Explain about serializable interface in java?
How can you add and remove nodes in jtree?
Can we convert list to set in java?
What is garbage collection? What is the process that is responsible for doing that in java?
What are static blocks and static initalizers in java ?
What is formatted output in java?
Can we extend singleton class?
Explain about main() method in java ?
What is high level language in computer?