Classes and structures | Sololearn: Learn to code for FREE!


Classes and structures

Classes and structures, which of them are more easier and friendlier?

5/4/2017 9:18:39 AM

Tsadidey Fortune Selassie

1 Answer

New Answer


assuming you're talking of C/C++ struct vs C++ classes (OOP), structs are easiest to handle as they are only data embeding, while class could embed also logic (funxtions/methods) related to datas... classes could do more than structs, but structs are easier friendly to deal: structs are avaimable in C AND C++, while classes only in C++ ^^