Answer to Question #530 in C++ for Dolores

Question #530
Is it better to use structures or classes? What is the difference?
1
Expert's answer
2010-08-03T11:24:23-0400
Structure in C++ is almost like a full class. In practice, the structures are used instead of classes only if the following conditions are observed:

-The structure does not contain virtual functions;
-Structure is not derivative of anything, except perhaps another structure.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS