In class default members are private and in structure default members are public ,When ever you want to hide data from outside functions then you can use class.But in ANSI C we can hide data by using...
Depends on the computer language, but in general, a structure is a value-type, while an instance of a class is a reference-type. A structure or struct, may not offer inheritance, class does.
Technically there are only two differences between classes and structures 1) classes and specified using the keyword class while structures using the keyword struct2) classes everything is by default...