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 scope of a variable?
difference between byte stream class and character stream class?
Why we go for collections in java?
What is an example of a conditional statement?
What is a boolean expression in java?
What is the syntax and characteristics of a lambda expression?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
How do you remove duplicates in java?
What is java jit compilers?
How to create an immutable class?
How do I remove a character from a string in java?
What is package protected in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
What are decalarations?
What are the differences between throw and throws?