CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS C++ VIRTUAL FUNCTIONS IN C++ DETAILS
Question :

What is encapsulation?

Category Virtual Functions in C++ Interview Questions
Rating (4.0) By 77 users
Added on 10/22/2009
Views 9801
Rate it!


Answers:

Source: CoolInterview.com

Packaging an object?s variables within its methods is called encapsulation.
Source: CoolInterview.com



Source: CoolInterview.com

It is protective wrapper which prevents the data from being accessed by the code outside the the wrapper, the code inside the wrapper can be accessed by a well defined interface<br><br>ex: class is a protective wrapper which binds data and methods together,they can be accessed only though well defined interface(i.e object of that class)
Source: CoolInterview.com



Posted by: shaker

Contact shaker Contact shaker

Source: CoolInterview.com

Wrapping of data and member function in a single unit is known as encapsulation.
Source: CoolInterview.com



Posted by: manas

Contact manas Contact manas

Source: CoolInterview.com

The wrapping of data and function together in a single unit is called encapsulation. It tell how to bind data.this is useful to hide the data which is the new feature added to oops for providing security.
Source: CoolInterview.com



Posted by: jas

Contact jas Contact jas

Source: CoolInterview.com

The wrapping up of data and its associate function together in a single unit(called class) is known as encapsulation.
Source: CoolInterview.com



Posted by: shalu

Contact shalu Contact shalu

Source: CoolInterview.com

Encapsulation<br>1. Encapsulation is the mechanism that binds together code and the data it manipulates and keeps both safe from outside interference and misuse.<br>2. Encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.<br>3. It binds the data and codes that operates on the data into a single entity.<br>4. Encapsulation protects an implementation from unintended actions and inadvertent access.<br>5. The encapsulation of instance variables is sometimes called as ?Information Hiding?.<br><br>The technique of hiding the internal implementation detail of an object from it?s external views. Internal structure remains private and services can be accessed by other objects only through messages passed via a clearly defined interface. Encapsulation ensures that the object providing service can prevent other objects from manipulating its data or procedures directly, and it enables the object requesting service to ignore the details of how that service is provided.<br>
Source: CoolInterview.com



Posted by: Sree Ranjini

Contact Sree Ranjini Contact Sree Ranjini

Source: CoolInterview.com

Wrapping of data members and member functions in a single entity.
Source: CoolInterview.com



Posted by: Bhawna

Contact Bhawna Contact Bhawna

Source: CoolInterview.com

bringing together data(attributes) and methods (behaviour) within a single entity (class) is known as encapsulation
Source: CoolInterview.com



Posted by: shanthakumar

Contact shanthakumar Contact shanthakumar

Source: CoolInterview.com

Wraping of data and function into a single unit is called encapsulation. ex object and class
Source: CoolInterview.com



Posted by: susil manohara sahoo

Contact susil manohara sahoo Contact susil manohara sahoo

Source: CoolInterview.com

Encapsulation is the process of hiding the data of the objects which is not contributed in it's essential characteristics.
Source: CoolInterview.com



Posted by: Sudhandhu Srivastava

Contact Sudhandhu Srivastava Contact Sudhandhu Srivastava

Source: CoolInterview.com

wrapping up of data and function into a single unit that called as encapsulation.n those data n function can be accesed via instances<br>ex: class
Source: CoolInterview.com



Posted by: jaywant topno

Contact jaywant topno Contact jaywant topno

Source: CoolInterview.com

It is the ability of object to hide its data n methods from rest of the programe.It is one of the fundamental principles of OOPs.<br>for Ex let we have a class called Multiplication defined below<br>Public class Multiplication<br>{<br> private void Multiply(int x,int y)<br> {<br> return x*y<br> }<br>}<br>...<br>...<br>Multiplication abc;<br>int Result;<br>Result=abc.Multipy(2,5);<br>now Multiplication is a class having fumction Multiply as one of its function and abc is the object of the class and this class is used to access the multiply function n there is no other source to access the function multiply hence no one but only object have the power to access the member function of class hiding it from the out side world.
Source: CoolInterview.com



Posted by: kanika khanna

Contact kanika khanna Contact kanika khanna

Source: CoolInterview.com

Packaging of data and function into a single componate is known as encapsulation.
Source: CoolInterview.com



Posted by: santosh kumar mallick

Contact santosh kumar mallick Contact santosh kumar mallick

Source: CoolInterview.com

Encapsulation is the mechanism that binds together code and the data it manipulates,<br>and keeps both safe from outside interference and misuse.
Source: CoolInterview.com



Posted by: Dany

Contact Dany Contact Dany

Source: CoolInterview.com

encapsulation is feature of oops concept it is nothing but class<br>class:-<br>wrapping up of both the data members and the member functions is called class which is extacted from the concept encapsulation
Source: CoolInterview.com



Posted by: P.ASHWINI

Contact P.ASHWINI Contact P.ASHWINI

Source: CoolInterview.com

Encapsulation is the process of wrapping up data and code which accesses it using a keyword "class"(in most programming languages)
Source: CoolInterview.com



Posted by: Harsha H R

Contact Harsha H R Contact Harsha H R

Source: CoolInterview.com

encapsulation is hiding irrelevant information of an object
Source: CoolInterview.com



Posted by: Pravin Jebadoss

Contact Pravin Jebadoss Contact Pravin Jebadoss

Source: CoolInterview.com

Encapsulation is the process of Binding data in a single class type variable. This concept is just like binding medicine in single capsul.
Source: CoolInterview.com



Posted by: Bhushan

Contact Bhushan Contact Bhushan

Source: CoolInterview.com

Encapsulation is used for data hiding. By using encapsulation, operations on datas can be performed through well defined interfaces. This ensures impossibility of inadvertent change of data. For example member values of an object can only be modified through its member methods. In C++, declaring a function friend of a class makes it feasible to access the class data. Java don't have any such concept and seems more objective in this sense.
Source: CoolInterview.com



Posted by: Moheed

Contact Moheed Contact Moheed

Source: CoolInterview.com

Encapsulation is the mechanism that binds together the code and the data it manipulates and keeps both safe from outside interference and misuse.<br><br>It provides the explicit boundary between an object's abstract interface and it's internal implementation details.
Source: CoolInterview.com



Posted by: Monalisha Nayak

Contact Monalisha Nayak Contact Monalisha Nayak

Source: CoolInterview.com

Encapsulation is the method of putting all the similar data into a single block.Where this single block is nothing but the class.where it contains the attributes and methods.
Source: CoolInterview.com



Posted by: Sudha reddy

Contact Sudha reddy Contact Sudha reddy

Source: CoolInterview.com

Wrapping(binding ) of data and member function in a single unit is known as encapsulation.
Source: CoolInterview.com



Posted by: gourav

Contact gourav Contact gourav

Source: CoolInterview.com

the wrapping up of data and code in a single unit known as class is called encapsulation.<br>
Source: CoolInterview.com



Posted by: Gaurav Agrawal

Contact Gaurav Agrawal Contact Gaurav Agrawal

Source: CoolInterview.com

incapsulation means to combine data and methods into a single module in which they are combind with each other.
Source: CoolInterview.com



Posted by: shivani

Contact shivani Contact shivani

Source: CoolInterview.com

Wrapping data and member functions in single unit is called as encapsulation
Source: CoolInterview.com



Posted by: mukund

Contact mukund Contact mukund

Source: CoolInterview.com

binding of data and member function together in a single unit is called encapsulation<br>ex:class
Source: CoolInterview.com



Posted by: BIPIN KUMAR DAS

Contact BIPIN KUMAR DAS Contact BIPIN KUMAR DAS

Source: CoolInterview.com

process of binding the member variable of a class along with member functions. It can be implemented with the help of object and also access modifiers like private, public and protected.
Source: CoolInterview.com



Posted by: Srinivasaraju

Contact Srinivasaraju Contact Srinivasaraju

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What is virtual class and friend class?
    View Answer
    What do you mean by pure virtual functions?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Virtual Functions in C++ Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    Dual system of pricing exist in: a)Free market economy b)Socialistic economy c)Mixed economy d)None of the above
    Inequalities of income do not perpetuate in_____: a)Socialism b)Mixed economy c)Capitalism d)None
    Which of these is an example of macro economics: a)Problem of unemployment in India b)Rising price level in the country c)Increase in disparities of income d)All of above
    what is the maximum segment length of a 100Base-FX network?
    What is mesh topology?
    What is IPv6?
    What is one basic requirement for establishing VLANs?
    When it comes to networking, what are rights?
    What protocols fall under the TCP/IP Internet Layer?
    What is the role of IEEE in computer networking?
    What is sneakernet?
    Explain profile in terms of networking concept?
    What can be done to fix signal attenuation problems?
    What is one advantage of mesh topology?
    What do mean by tunnel mode?
    Explain the importance of authentication.
    How are IP addresses arranged and displayed?
    What is the importance of Encryption on a network?
    What is multicast routing ?
    What is the importance of Encryption on a network?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0.765625 Seconds