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
Functioning of ROLAP happens concurrently with relational databases. Data and tables are stored as relational tables. To hold new information or data new tables are formed. Functio

Q. Explain about Semiconductor Memories? Originally IC technology was used for constructing processor however soon it was realized that same technology can be used for construc

Second Generation (1954-1962) The second generation saw various significant developments at every level of computer system design, from technology used to build the basic circu

what is the scope of doing a final year project on cloud computing?

An object model for university system Establishing relationship among various classes in the system is the primary activity. Here, we have a simple model of a University System

Your shell must accept commands from the user. The first step to implement this will be reading a line of input. This section will focus on what to do with the line of input after

A grammar for a programming language is a formal description of ? Structure is a formal description for a programming language.

Discuss two main approaches to reuse free memory area in a heap. Two major approaches to reuse free memory area in a heap are: First-fit: Allocate the first hole which i

Q. What is External Procedures? These procedures are written as well as assembled in separate assembly modules and afterwards linked together with the main program to form a bi

You are going to write a program to simulate a conversation with an old, deaf relative. You can type your statements, and whatever you say, the relative will reply randomly with on