Difference between Encapsulation and Abstraction
Answer Posted / prashant
abstrction in simple language is making complex thing simple
to use by using small and simple controls.
example:- as we know that the car is made up of many
complicated parts.but without bothering the internal details
of car we can drive using accelerator,break and clutch.in
this example accelarator,break and clutch are the small
controls,which makes possible to operate compicated car
encasulation is a method of defining data members and method
together within a class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is enumset?
What are meta-annotations?
What is final int?
Is math an abstract class in java?
What is autoboxing and unboxing?
What is a parameter used for?
Explain about collection interface in java?
Is char a data type in java?
What is nullpointerexception?
Enlist diffrent types of inheritance supported by java?
Can you write a java class that could be used both as an applet as well as an application?
What is the purpose of tostring() method in java?
Which programming language is best in future?
How is java hashmap implemented?
What is array sorting in java?