Q:

What, if any, are the differences between using class or struct

0

What, if any, are the differences between using class or struct?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The only difference between `struct` and `class` is the default access level. The members defined before the first access specifier are `public` in `struct`, while those are `private` in `class`.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now