Described the differences among a c++ struct & c++ class?, C/C++ Programming

Described the differences among a C++ struct & C++ class?

A: The default member & base class access specifies are distinct. It is one of the commonly misunderstood aspects of C++. Many programmers think that a C++ struct is just as a C struct, whereas a C++ class has inheritance, member functions, access specifes, overloaded operators, and so on. In fact, the C++ struct has all of the features of the class. Only differences are that a struct defaults to public member access & public base class inheritance, & class defaults to the private access specified and private base-class inheritance.

 

Posted Date: 3/16/2013 2:57:10 AM | Location : United States







Related Discussions:- Described the differences among a c++ struct & c++ class?, Assignment Help, Ask Question on Described the differences among a c++ struct & c++ class?, Get Answer, Expert's Help, Described the differences among a c++ struct & c++ class? Discussions

Write discussion on Described the differences among a c++ struct & c++ class?
Your posts are moderated
Related Questions
Implementing files in c++

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Write a C++ program according to the following specifications 1. Display a brief description of the program. 2. Ask the user to specify the type of loading (end load, intermediate


How to specify different memory sections for a variable using #Pragma?

Rules of function: Inline function created without prototype it reduces the memory and it is used only for small function. Inline function cannot have recursion, static var

Where are longjmp and setjmp used in C++? -Setjmp and longjmp must not be used in C++. - Longjmp jumps out of the function without unwinding stack. This means that local obj

Function Overloading Function overloading is a form of polymorphism. Function overloading facilitates explaining one function having many forms. In other words it facilitates e

Program for Memory Optimization of C / OpenCL Code Project Description: This is possibly a very simple project for someone with an excellent knowledge of C and OpenCL. That,

Receive 3 numbers and display them in ascending order from smallest to largest ed#