GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 9 of 63    Print  
what is the difference between encapsulation and datahiding.explain with example

  
Total Answers and Comments: 14 Last Update: August 21, 2007     Asked by: ramaprasad 
  
 Sponsored Links



 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
November 16, 2005 01:28:56   #1  
venkatesh Member Since: November 2005   Contribution: 19    

RE: what is the difference between encapsulation and d...

encapsulation is the concept of grouping of datamembers and member functions.Data hiding means we cannot use the datamembers out side of the class.


 
Is this answer useful? Yes | No
November 24, 2005 05:18:59   #2  
viswanathareddy        

RE: what is the difference between encapsulation and d...

Hi,

Please give me the detail explanation on the Encapsulation and Data hiding with example.


 
Is this answer useful? Yes | No
December 24, 2005 12:08:13   #3  
revathi_kalaivanan Member Since: December 2005   Contribution: 2    

RE: what is the difference between encapsulation and d...

It is the mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse. In short it isolates a particular code and data from all other codes and data.

ex:

Class Base

{

int a=1;

Public void fun1{}

}

Abt data hiding,we access the data from a class in a secure way using the object.


 
Is this answer useful? Yes | No
April 12, 2006 19:46:05   #4  
zahoorahmad Member Since: April 2006   Contribution: 7    

RE: what is the difference between encapsulation and d...

Encapsulation:

when u used format specifiers, public, private and protected. Basically u r defining scopes so encapsulating them.

Data Abstraction:

But when once u have made ur porgram, you dont give ur code to ur user but exe. so here ur hiding ur data .. this is often said as data abstraction.

so as a recall

PRIVATE PUBLIC = encapsulation

EXE not CODE = data abstraction.


 
Is this answer useful? Yes | No
April 20, 2006 12:28:40   #5  
Milind        

RE: what is the difference between encapsulation and d...

Hey....

Can we say that we can achieve data hiding with the help of encapsulation...?? please correct me if I am wrong....


 
Is this answer useful? Yes | No
May 05, 2006 03:44:39   #6  
Kumar nitya nand        

RE: what is the difference between encapsulation and Abstraction

Deasr Sir/Madam

I m requesting u that please mail answer of some certain Question.

what is the difference between encapsulation and Abstraction.

How can we change the value type to reference type.

regards

Nitya


 
Is this answer useful? Yes | No
May 27, 2006 17:27:34   #7  
malathi        

RE: what is the difference between encapsulation and d...

Encapsulation is the inclusion all the resources needed for the object to function - basically, the method and the data.

information hiding is one technique used to accomplish encapsulation of an object.Information hiding is when you remove data, methods or code from a class's public interface in order to refine the scope of an object.

 


 
Is this answer useful? Yes | No
July 27, 2006 05:12:24   #8  
vsd123 Member Since: July 2006   Contribution: 1    

RE: what is the difference between encapsulation and d...

In simple terms, Encapsulation is am implementation of the data abstraction(data hiding). Data hiding is conceptual while encapsulation is how u implement that concept logically.

 


 
Is this answer useful? Yes | No
September 08, 2006 17:31:18   #9  
RAJEEV16706 Member Since: September 2006   Contribution: 7    

RE: what is the difference between encapsulation and d...

ENCAPSULATION : WHEN IS ARE DECLARING A CLASS WE ARE DOING ENCAPSULATION.

DATA HIDING: WHEN WE PROVIDE ACCESS SPECIFIER TO THEM LIKE (PRIVATE PROTECTED,PACKAGE PROTECTED, PUBLIC) WE ARE HIDING THE DATA FROM MISUSE.

PLEASE COMMENT...


 
Is this answer useful? Yes | No
December 22, 2006 08:39:09   #10  
Binta Ceesay        

RE: what is the difference between encapsulation and d...
 what is the difference between encapsulation and datahiding.explain with example
 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links



 
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape