N
needin4mation
I know this doesn't have much of a context, but, in this (take from
Petzold's Programming Windows with C#) snippet:
class DatePlus: Date
{
public DatePlus(){}
public DatePlus(int year, int month, int day): base(year, month,
day){}
..
..
..
}
I understand the default constructor for DatePlus(){}. My question is
about the second one. Is it saying that DatePlus accepts, in its
formal constructor a year, month and day, but then immediately passes
them to the base class that it inherited from (Date)?
Thank you.
Petzold's Programming Windows with C#) snippet:
class DatePlus: Date
{
public DatePlus(){}
public DatePlus(int year, int month, int day): base(year, month,
day){}
..
..
..
}
I understand the default constructor for DatePlus(){}. My question is
about the second one. Is it saying that DatePlus accepts, in its
formal constructor a year, month and day, but then immediately passes
them to the base class that it inherited from (Date)?
Thank you.