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
What is meant by oops concept in java?
Explain purpose of sleep() method in java?
What is tcp and udp?
Which methods cannot be overridden in java?
Explain with example the concept of constant variable in java.
Explain garbage collection in java?
Difference between serialization and deserialization in java?
What is function overriding and overloading in java?
can any body body expalin best definitions & best real time exaples for opps concepts.
If a method is declared as protected, where may the method be accessed in java programming?
What is empty list in java?
what is interface in java? Explain
Is java util list serializable?
What is the output of the below java program?
What is difference between stringbuffer and string?