In standard C , Struct and Class have two differences: First: members in Struct By default, the default is private in the Class. Second: You can only write template or template .