What is public, protected, private in c++, Computer Engineering

* Public, protected and private are 3 access specifier in C++.

* Public data members and member functions are accessible outside the class.

* Protected data members and member functions are only available to derived classes.

* Private data members and member functions can't be accessed outside the class. Though there is an exception can be using friend classes.        

 

 

Posted Date: 4/8/2013 5:39:26 AM | Location : United States







Related Discussions:- What is public, protected, private in c++, Assignment Help, Ask Question on What is public, protected, private in c++, Get Answer, Expert's Help, What is public, protected, private in c++ Discussions

Write discussion on What is public, protected, private in c++
Your posts are moderated
Related Questions
Assembler directives: An assembler directive is a statement to give direction to the assembler to perform the task of assembly process. Assembler directives control organizati

Organisational Inertia - Obstacle To Information System This is most easily understood as problems of change and culture. Like any change process technology led change will be

The LOOP-ENDLOOP on extract datasets can be used without any kind of errors False.  It causes runtime errors.

Give an example of Problem Statement You should understand here that you are looking for a statement of requirements, not a proposal for the solution. OOA specifies structu

A neural network can be definite as a model of reasoning based on the human brain. The human brain incorporates nearly 10 billion neurons and 60 trillion connections, Synapses amon

Q. Explain working of Jaz Drive? Jaz Drive: Jaz drive is a well-liked drive with 2GB and unleashes creativity of professionals in graphic design and software development, pub


What are the requirements a dialog program must fulfill? A dialog program must fulfil the following requirements A user friendly user interface. - Format and consistency

How do you achieve workflow automation in e-business environment?   In order to run easily, organizations often standardize processes across the organization and encourage user

We might model such a scenario using three types of object: one for Customers, one for BankAccounts and another for Transactions. In terms of data required, for Customers assume we