public:
indicates that a member function or data member is accessible to other functions and member of other classes
private:
makes a data member or member function accessible only to member functions of the class; private is default access for class members
protected:
makes a data member function accessible to subclasses
Functions used to initialize an object's data when it is created.
Default constructors have no parameters. The compiler will provide one when a class does not include a constructor itself. Compiler's default constructor implicitly calls constructors of data members that are objects of classes.
e.g.: x = (y>=100) ? "greater than 100" : "less than or equal to 100"