0

can anyone give explanation about difference between structure and class

structure in c language and class in Java.

13th Jul 2016, 5:44 PM
Kapil Sai
Kapil Sai - avatar
2 ответов
0
i think structure is only defined state (data) while class is defined state and behavior
13th Jul 2016, 10:16 PM
Sunusi Muhammad Raji
Sunusi Muhammad Raji - avatar
0
1. structure in c++ can not contain methods 2. you can save structure variable to file, but cannot make it with class instance.
14th Jul 2016, 6:16 PM
Maxim Kvasnikov
Maxim Kvasnikov - avatar