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 the += operator called?
What are the ways in which a thread can enter the waiting state?
What is the association?
What is 16 bits called?
What are three types of loops in java?
What is stack explain?
What is local class in java?
What is an immutable class? How to create an immutable class?
Write a java program to check if a number is prime or not?
Why we use multi threading instead of multiprocessing?
What is the difference between abstract classes and interfaces?
What is instance means in java?
Is arraylist sorted in java?
Can you override a final method?
What does g mean in regex?