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


Please Help Members By Posting Answers For Below Questions

What is the difference between Java and C++?

826


Can an interface be defined inside a class?

735


What is math floor in java?

665


How do you reverse sort a list in java?

721


What is a default constraint?

812


What does this () mean in constructor chaining concept?

808


How does hashmap work in java ?

729


Explain the usage of this with constructors?

747


How do you compare objects in java?

690


What is a dynamic array in java?

785


What is the intersection and union methods?

775


What are recursive functions?

792


What is the difference between dom and sax parser in java?

738


What is the difference between procedural and object-oriented programs?

715


what r advatages of websphere? & how to deploy?

1844