Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp class constructor

class MyClass {     // The class
  public:           // Access specifier
    MyClass() {     // Constructor
      cout << "Hello World!";
    }
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cpp #class #constructor
ADD COMMENT
Topic
Name
5+9 =