Structures (just like classes) can have its name, fields and member-functions. But fields and member-functions have public access modifier by default in case of structures while it is private for classes.
Same modifiers are in place by default in case of base class inheritance.
There is no more difference between classes and structures.
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать