+ 6

C++ structure or classes?

heya ...just need your opinion about structure or classes .....what's better? i dont know much about structures but it seems to be interesting.

12th Jan 2018, 9:56 AM
adnan
adnan - avatar
4 Answers
+ 1
Classes.
12th Jan 2018, 11:08 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
hello, in my opinion we can't say that which among those two is better coz there not the same things to be compared. . for general purpose i can say that structure concept was introduced in C lang were as OOP based C++ have both the features. . for the use i would prefer Class over structure for small level programming....but if you want to use them for further complex programming you should use structure in a class.
20th Jan 2018, 5:51 AM
Gajendra lohar
Gajendra lohar - avatar
+ 1
In C language we use Structures. whereas in C++ we call it as Classes
21st Jan 2018, 6:34 AM
Sowjanya
Sowjanya - avatar