Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Classes

class MyClass {       // The class
  public:             // Access specifier
    int myNum;        // Attribute (int variable)
    string myString;  // Attribute (string variable)
};
Source by cplusplus.com #
 
PREVIOUS NEXT
Tagged: #Classes
ADD COMMENT
Topic
Name
5+7 =