c++ small class question?

hi, quick question out of the book that I wouldn't even know where to start.

A class called Calendar has a default constructor and a constructor that accepts an integer value specifying the year. Write a code segment invoking EACH of the constructors for an object called primary. Use the current year as the argument to the second constructor.

Any help would be appreciated. :)

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 Q2A.ES - All rights reserved.