What are the differences between a class and a structure ?
(Besides the fact that the default access specifier of a class is private and that of a structure is public..)
Are there any other differences in these two ?
(eg. Do constructors and inheritance works identically in both these ?)
Pls list all the point that you know of.
Structs are preferred when you just need a data structure, without methods. The preference comes from the fact that structs in C could only store data, but they aren't more suited or anything like that