Constructors
A constructor is used to create an objects.
A class can define its own constructor.
class class-name
{
constructors
declarations
methods
}
class-name( parameter-list )
where constructor-modifier can be
- public
- private (use to be explained later)
- one other constructor-modifier later