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


Please Help Members By Posting Answers For Below Questions

What do you mean by mnemonics?

651


What are the differences between Java 1.0 and Java 2.0?

1754


How are observer and observable used in java programming?

638


How do you check if an arraylist is not empty?

667


How to reverse a string in java?

616






How we can skip finally block of exception even if some exception occurs in the exception block in java?

619


Write the algorithm to check the number non-leaf nodes in a tree.

721


What is json parser in java?

706


How do you check if two strings are equal in java?

676


What is a linkedhashmap java?

659


What is mvc in java?

650


what is the final keyword denotes in java?

673


Can two objects have same hashcode?

655


What is the use of join method?

667


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

652