Why };

why do we use }; in the end of the code?

Because that’s how C++ syntax is defined for declaring a class.
C# on the other hand doesn’t have a ; at the end of a class, but it’s also structured differently.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms