+ 1

Could anyone help me how to deal struct , class ?

I just want to know how to use struct inside of class and relation among them!

18th May 2019, 6:06 PM
Abrorbek Zukhriddinov
Abrorbek Zukhriddinov - avatar
2 odpowiedzi
0
Struck inside of a class? I believe that you come from the C language, in C++ you don't need struct anymore.The only difference between struct and class is that in a struct a default field is public and in a class a default field is private. You can as a field of any class have whatever you want( another class if you want so).
18th May 2019, 7:21 PM
Raphael Gad
0
yes thanks answer ! but how do we use struct inside of the class? this is real question!
18th May 2019, 7:58 PM
Abrorbek Zukhriddinov
Abrorbek Zukhriddinov - avatar