Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp class constructor

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