what is encapulation?

Answer Posted / yohesh rasal

The wrapping up of data and function into a single
unit(called class) is known as encapsulation.

The data is not accessible to the out side word,and only
those functions which are wrapped in the class can access
it.These function provide the interface between the object
data and the program.This insulation of data from direct
access by the program is called data hiding or information
hiding.

Is This Answer Correct ?    32 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you use shell script/Perl ahead of C/C++?

657


What is autocall macro and how to create autocall macro? what is the use of it?

1501


in cobol,wat is the difference in using 'set index in occurs clause' ....and 'occurs depending-on clause'

1776


Any real time example of O2C process from taking order till creating invoice.

1791


write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe

1564






I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution

2214


hoe to data grid use in sql server 2000?

1602


What are the tasks performed by a Team Lead

2337


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1509


1.Mutating table

1395


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

610


Definition of Singleton Class? what is the Purpose of it? what is the advantage?

1593


Give examples of macro quoting function?

1553


how CLR identify vb file?

2501


what is the certificates in biztalk?

1432