GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 199 of 203    Print  
Data Encapsulation
Which one of the statements concerning data encapsulation is FALSE?

A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods provided by that object.

B. Programmers can change the internal working of an object, but this may be transparent as long as the interface remains unchanged.

C. Data encapsulation works well for maintaining code.

D. Data encapsulation can be easily supported by C++ classes.

E. Data encapsulation increases the complexity of programming.



  
Total Answers and Comments: 2 Last Update: July 29, 2009     Asked by: desirocks 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: tewari2312
 
E is false, because encapsulation decreases the complexity of the program (encapsulation is to wrap data and associated functions into a single unit called class)

Above answer was rated as good by the following members:
AlexeyP
June 13, 2009 00:52:05   #1  
tewari2312 Member Since: June 2009   Contribution: 4    

RE: Data Encapsulation
E is false because encapsulation decreases the complexity of the program (encapsulation is to wrap data and associated functions into a single unit called class)
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 29, 2009 09:27:18   #2  
yzesong Member Since: July 2009   Contribution: 20    

RE: Data Encapsulation
E is wrong. Everything else looks right.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.   
Latest Answer : A class is an expanded concept of a structure. Instead of holding data it can hold both data and functions. ...

Ø      Public, protected and private are three access specifiers in C++.  Ø      Public data members and member functions are accessible 
Latest Answer : These are three important access specifiers.1. Private - Members are accessible only to member functions and friend function. 2. Protected - Members are accessible to member functions of the class and classes which are derived from this class. 3. Public ...

 Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. 
Latest Answer : You cannot use inline functions in a structure ...

Packaging an object’s variables within its methods is called encapsulation.   
Latest Answer : According to me encapsulation is the process in which we can collect the data members and functions in one place or we can say that to encapsulate the related things. ...

Encapsulation.   
Latest Answer : Binding in context to functions means "Linking of a function call to the code to be executed in response to the function call" ...

  Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This 
Latest Answer : Here are some examples1) Function overloadingclass FuncOver {public:      // Constructors can also be overloaded.      FuncOver();      // Overloaded constructor.      ...

Templates allow to create generic functions that admit any data type as parameters and return value without having to overload the function with all the possible data types. Until certain point they fulfill 
Latest Answer : A template parameter is a special kind of parameter that can be used to pass a type as argument: just like regular function parameters can be used to pass values to a function, template parameters allow to pass also types to a function. These function ...

Latest Answer : Encpasulation is the process of packaging the classes into the public interfaces and private implementation, so that, any changes in the code will not effect the implmentation. The interfaces should be designed such that the actual implementation would ...
Read Answers (5) | Asked by : kaushal

To allow derived class functions to access private base class data, what should you do?A. You should use a private base class function.B. You should use a public or protected base class function.C. You 
Latest Answer : F. None of the above are entirely the right answerYou can provide a method in the base class to allow the private data to be read or written and then provide an access specifier in the derived class which allows the methods to be called.  For example:class ...

Which one of the statements concerning data encapsulation is FALSE? A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods 
Latest Answer : E is wrong. Everything else looks right. ...


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape