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
processing two jobs through 2 machine

though the ascii is called 7-bit code. why do we use 8-bits to represent a character?

Write a program called A1Q3, that reads it the radius of a circle as an integer and prints the circle's diameter, circumference and area.  Use a constant value for pi.  Do all calc

Q:  Tells the operators one can override; which operators should he override? A: Bottom line: don't puzzle your users. Remember the reason of operator overloading: to decreas

Lennie McPherson, proprietor of Lennie''''s Bail Bonds, needs to calculate the amount due for setting the bail. Lennie requires something of value as collateral, and his fee is 10%



At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Can any constructor throw an exception? How to handle error while the constructor fails?