Constructor - Nathan-Groves/2143-OOP-Groves GitHub Wiki
Allows the ability to create an instance of a class, typically with already set values for certain members. Always has the same name as the Class and is found in public with no return type.
class Person {
private:
int age;
public:
void setAge(int a);
Person()
{
age = 20;
}
};