Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Beginning Visual C# 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 16th, 2007, 10:28 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default abstraction & encapsulation

hi,
what is the difference between abstraction and encapsulation ?
     please anybody explain me with practical implementation

    I am new one to programming language.So, I chosen c # to get into programming.I studied this book, but i con't understand every thing so i started rereading this book from the beginning .I hope this time my doubts will clear on this forum.


Reply With Quote
  #2 (permalink)  
Old April 17th, 2007, 06:23 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
 encapsulation is the process of hiding data. this is ok, but i found another definnition i.e.
    binding data with related sub programmes as one unit this is called data encapsulation. practical implementation is class.


please anybody give me clear idea.

Reply With Quote
  #3 (permalink)  
Old June 11th, 2007, 02:34 AM
Registered User
 
Join Date: Jun 2007
Location: Hyderabad, Andhrapradesh, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Data abstraction in OOPs is the concept of abstracting(avoid to show) the implemetaion to the user.Just it gives the functional description but not the implementaion part.

For example : take an abstract class or an interface it gives the user some method descriptions(names). but not the internal implementaion. by calling these methods he will get the functionality.(This is much used in distributed applictions).


Whare as Encapsulation in OOPs is process of hiding or i can say securing data from outside functions. The data is strictly binded with function members declared in the same class. i.e by using this functions only u can manipulate the data. but not directly with external functions.

For example in C# we can use properties insde the class to manipulte or access the private data declared in the same class. but not from outside functions.

Thanks
Karuna.

karuna
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UI Abstraction layer navdeep General .NET 10 October 9th, 2007 06:22 PM
GenericObject with Database Abstraction soccer022483 BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 March 28th, 2006 07:09 AM
Data Abstraction Layer kcraft Pro PHP 6 March 18th, 2006 04:29 PM
Database Abstraction Layer browngb BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 4 April 30th, 2005 03:34 PM
What is abstraction...? arshad mahmood C++ Programming 2 June 30th, 2004 01:28 AM



All times are GMT -4. The time now is 04:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.