The only formal difference between class and structure is that in a class the members are private by default, while in a structure they are public by default. It is good to use Structre for data,classes for both datamembers and memberfunctions.
Post a Comment
1 comment:
The only formal difference between class and structure is that in a class the members are private by default, while in a structure they are public by default.
It is good to use Structre for data,classes for both datamembers and memberfunctions.
Post a Comment