Define Default Constructor There are two ways to define a default constructor: Define a constructor with no arguments Time (); Provide default values for all arguments Time(int h=12, int m=0, int s=0 ); There can be only one default constructor, so don’t use both in a class. www.learnbywatch.com |
[email protected]