Question: What is the difference between struct and class?
Answer: There are few differences: All members of struct are public. Default inheritance for struct is public, where as for class the default inheritance is private.
Question:
What is the difference between struct and class? Answer:
There are few differences: All members of struct are public. Default inheritance for struct is public, where as for class the default inheritance is private.