answersLogoWhite
Software and Applications (non-game)
Computer Programming
The Difference Between

What is difference between encapsulation and abstraction and how are they related to each other?


Top Answer
User Avatar
Wiki User
Answered 2015-07-17 17:56:54

Encapsulation is hiding the details of the implementation of an object so that there are no dependancies on the particular implementation.

Abstraction is removing some distinctions between objects, so as to showing their commonalities

Encapsulation is wraping data into single unit (eg. class)

Abstraction is hiding unessential parts and showing only essential data.

(eg. student class- name, age are essential parts while height, weight are not essential, so hiding information of height and weight)

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Loading...

Still Have Questions?

Related Questions

Principles of object-oriented programming?

Object-oriented programming is a way of programming involving the use of abstraction to create objects based on related features. The four major principles of OOP are abstraction, encapsulation, inheritance and polymorphism.


Abstraction encapsulation and inheritance with examples?

Abstraction, Encapsulation & Inheritance are all Object Oriented concepts that are used in programming languages like Java extensively. Check out the links in the related links section to learn more about these concepts with examples. Note: Explaining this concept in this answer would involve pages of text which could be too long to read in one go.


What is the difference between related substances and degradation product?

what is the difference between degradation products and related substances


What is the difference between related substances and impurities?

no difference


How is the distance between two rational numbers related to their difference?

Directly. Their difference IS the difference between them.


What is the difference between related to and related with?

"Related to" is idiomatically correct English. "Related with" is not.


What is the difference in km between the earth and the sun?

Difference between what? See related question


What is the difference between Telecommunication and Mobile communication?

the difference between Telecommunication and Mobile communication that , tele related to wire communication and mobile related to wireless communication


What is the difference between gang related homicides and other types of homicides?

There is no difference between homicide and gang related homicide; they are both homicide, subject to the same penalties.


What are object oriented Programs?

There are two types of programmes related to objects that i know.Pradip: object base means : realted only with object where u can find the encapsulation ,abstraction data hiding is possible but Inheritance,polymorphism, wil not be possible in case of object base programme. all are core object oriented programming.


What is the difference between associated with and related to?

I want to know it too


What is the difference between a quasar and a pulsar?

See related questions.


What is the difference between cost and expense?

cost related to the production and expense related to the administration and marketing.


What is the difference between pitch and volume?

Pitch is related to a sound's frequency. Volume is related to its amplitude.


What is the difference between exterior and external?

Exterior: Related to appearance External: Related to location outside.


Is Georgia O'Keeffe Cow's skull with calico roses related with abstraction?

no it is not related with abstract art. although some may say it is


What is the difference between a wolf and a wolverine?

A wolf is a canine (related to dogs.) A wolverine is a mustelid (related to weasels.)


What is the Difference between cuttlefish and a dogfish?

A cuttlefish is related to the squid, a dogfish is related to the shark, they are NOTHING alike.


What is the difference between a college major and minor?

See related link


What is the difference between Singapore and Malaysia?

See the Related Link below.


What is the difference between pulsar and a black hole?

See related questions.


What is the difference between a nova a supernova and a hypernova?

See related questions


What is the difference between a prominence and a solar system?

See related questions


Difference between neutron stars and black holes?

See related


What is the difference between the Sun and a neutron star?

See related questions.