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

#include #include using namespace std; class Book { private: string title; int iD; int year_pub; string author; public: string getTitle(); int getId(); int getYear_Pub(); st

how to use and what is implicit and explicit constructor

Write a c program to determine interchanged values between two variables?[Hint - if loop] What will be the output of the program? How many times this loop will execute? Wr

I''m having trouble with my C code to red from a Hash table. Not sure what it is I''m doing wrong and stumped. I need to get it figured out by tomorrow at 4:00 p.m. Eastern time. C

direction[] = {L,R,R,L,L,R,R,R,R,L,Z} length[]= {2,2,1,1,1,2,5,2,2,3,1}

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Should I call a destructor explicitly on a local variable?

Assume variables x, f, and d are of type int, float, and double, respectively.  Their values are arbitrary, except that neither f nor d equals +∞, -∞, or NaN .  For each of the fo

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