Carla created a class called date jameel has been assigned


Part A:

Carla created a class called Date. Jameel has been assigned a program to use the Date class as part of a program to create employee records that include dates. Write a statement that Jameel might need to create a Date object using the class's default constructor.

Part B:

Carla's Date class has a function called monthDays that has a month number parameter and returns the number of days in the month passed in. Here is the function definition:

int Date::monthDays(int month)

{

... // actual code not needed

}

Jameel creates a Date object called date1 using an appropriate constructor. Show the statement that Jameel must write to call the monthDays function with the month number 6 and store the results in an appropriate variable.

Part C:

A Circle class has a member function called calcArea that is defined outside of the class declaration. Write the function header for this function assuming it returns a double value.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Carla created a class called date jameel has been assigned
Reference No:- TGS02885063

Expected delivery within 24 Hours