struct vs. class

struct

class

value type

reference type

copied when passed or assigned

passed around via pointers

Last updated