What is the difference between a struct and a class?

Go down

What is the difference between a struct and a class?

Post  skyboard on Sun Sep 04, 2011 11:28 am

The only difference is that structs have all members by default public, and classes private.

However, because of this difference, structs are often used to hold small sets of data, whereas classes are more often used when there are methods.

skyboard

Posts : 31
Join date : 2011-09-03

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum