php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Difference b/w encapsulation and information hiding
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1


AoA Respected sir, Please explain what is the main difference b/w encapsulation and information hiding thanks & Regards
Reply
#2
Encapsulation means to protect data in an object by making data members protected or private in a class. The user can change the state of an object but the user can not directly modify the object. This ensures that the object will be in a stable condition. In encapsulation both information structure and implementation details are hidden from the outside world.

Information hiding means hiding the object details (data and behaviour) from the users. Data hiding is an extreme version of encapsulation where you not only don’t want the user to access the data members, but you also don’t even want them to be able to see what they are. Information hiding is achieved by using encapsulation.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is the difference among calloc function ,malloc function and recalloc function? Vuhelper 0 34,678 05-31-2012, 01:46 AM
Last Post: Vuhelper
  What is difference among Binary Tree, Complete Binary Tree and Binary Search Tree? Vuhelper 2 4,460 03-18-2012, 12:47 AM
Last Post: Xpert
  Explain the difference b/w Null Pointer and Null Nodes? C++ 2012 Vuhelper 0 2,012 01-06-2012, 12:24 AM
Last Post: Vuhelper
  What is the difference b/w Inorder Traversal and Inorder Successor? 2012 Vuhelper 0 1,850 01-06-2012, 12:23 AM
Last Post: Vuhelper
  what is the difference between 1. Double Right-Left Rotation 2. Double Left-Right Rot Vuhelper 0 2,090 01-04-2012, 10:37 PM
Last Post: Vuhelper
  What is the difference between “object = this->object” and “this->object=object”? Vuhelper 0 4,115 01-04-2012, 10:17 PM
Last Post: Vuhelper
  What is difference between a complete binary tree and strictly binary tree? Vuhelper 0 4,557 11-05-2011, 05:24 PM
Last Post: Vuhelper
  what is difference between *a.b and (*a).b ? Vuhelper 0 2,757 11-05-2011, 05:23 PM
Last Post: Vuhelper
  what is difference between int* b and int *b? Vuhelper 0 2,258 11-05-2011, 05:20 PM
Last Post: Vuhelper
  difference between data structre and algorithm. saneha 1 4,969 05-02-2011, 06:49 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support