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 difference between Java and C++?
Can an interface be defined inside a class?
What is math floor in java?
How do you reverse sort a list in java?
What is a default constraint?
What does this () mean in constructor chaining concept?
How does hashmap work in java ?
Explain the usage of this with constructors?
How do you compare objects in java?
What is a dynamic array in java?
What is the intersection and union methods?
What are recursive functions?
What is the difference between dom and sax parser in java?
What is the difference between procedural and object-oriented programs?
what r advatages of websphere? & how to deploy?