Answer Posted / prakash

simply hiding implementation details and show what ever the
client programmer needs. there are two programmers in
devolopint the project Class Creators (who create new
datatypes) and client programmers (class consumers who use
data types in their applications).

It is helpful to break up the playing field into class
creaters and client programmers. The goal of the client
programmer is to collect a toolbox full of classes to use
for rapid application devolopment. The goal of the class
creator is to build a class that exposes only whats
necessary to the client programmers and keeps everything
else hidden. why because the client programmers cant use it
which means that the class creatior can change the hidden
portion at will without worrying about the impact to anyone
else. The hidden portion usually represents the tender
insides of an object that could easily be corrupted by a
careless or uninformed client programmer so hiding the
implementation reduces program bugs.

It is acheived in c++ through class boundaries (private
public and protected keywords...)

ex: class Light
{
private:
//data
public:
on();
off();
//.....
};
Light lt.on();

Is This Answer Correct ?    63 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ostream in c++?

563


Is the declaration of a class its interface or its implementation?

694


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1479


Is there any difference between int [] a and int a [] in c++?

543


What are c++ redistributables?

552






Explain the difference between static and dynamic binding of functions?

541


What are the c++ access specifiers?

759


What is general form of pure virtual function? Explain?

504


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1781


Declare a class vehicle and make it an abstract data type.

530


What is abstraction in c++?

666


What is iterator in c++?

602


What is the cout in c++?

543


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

540


How is static data member similar to a global variable?

574