471,120 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

unable to know whether following is encapsulation or abstraction

" it facilitates the object to hide its implementation and expose only interfaces"

this above line is for encapsulation or abstraction???
and how??????


my next question is that-

does encapsulation hides abstraction??
Dec 1 '09 #1
2 2128
mrjohn
32
That's a little hard for me to tell without the context, but it sounds like encapsulation to me, as abstract methods have no data to hide.
Dec 1 '09 #2
Frinavale
9,735 Expert Mod 8TB
This would have been simply answered by doing a little research on the topics of Abstraction and Encapsulation.

It's very hard to answer your question because you've left out the context of the quote.

Abstraction "hide the implementation" of a control or Object.
Encapsulation also "hides implementation".

There is a big difference between the two: encapsulation exposes methods and members to other code while hiding other methods and members. This is done with the public and private scope modifiers. There is a lot to encapsulation so you should look it up.

Abstraction involves the facility to define objects that represent abstract "actors" that can perform work. It reduces hides the implementation of the objects.

Please do your research before asking a question.
And also, please provide a context for your future questions...

-Frinny
Dec 2 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by InProcess | last post: by
3 posts views Thread by bluekite2000 | last post: by
7 posts views Thread by Jed | last post: by
32 posts views Thread by bluejack | last post: by
53 posts views Thread by souporpower | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.