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
Write a program to input two integers. If they are equal display "The numbers are equal". Otherwise display a message if the first is a multiple of the second or if it is not a mul

How can I handle a destructor that fails? Need help please provide example also.

You are to develop a Clinic System. 1. Identify and briefly explain the objects, classes, methods and attributes for the Clinic System. 2. Draw a use case diagram to represen

I need whatsapp software in my website Project Description: i need whatsapp software in my website same this whatsapp if anyone can make to me this in my website Skills

if age of ram,shayam and ajay are input through keyboard,write a program to determine the youngest of the three.


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

What are  Id e n t i f ie rs a n d C o n s t a n ts in C++? Id e n t i f ie r a n d C o n s t a n t : I d e n t i f ie r

wap to cheak if a number is palindrom

A:  it is containing and hiding Information regarding an object, like internal data structures and code. It isolates the internal complication of an object's operation from the res