Use of an imported class for the creation of a class

0

I need help with the following:

Create the Pagare class. The class contains data fields that hold a promissory note number, the payee's last name, amount, date of opening and expiration date, use GregorianCalendar objects for each date. Provide accessor and mutator methods for each field. Also provide a constructor that requires parameters to put the first four fields, and calculate the expiration date one year after the opening date. The GregorianCalendar class is useful when working with dates and times. It has seven constructors available to create objects. The get instance method with different constants returns information relating to the date, such as year, or month. Consult the documentation for more information.

The only thing I need help with is the use of the GregorianCalendar class, if you could help me with that question I would thank you, thank you.

    
asked by Samuel Martinez 12.10.2018 в 03:16
source

1 answer

0

You can be a little more specific in what you need. In the meantime, this example can help you.

link

    
answered by 12.10.2018 в 04:41