Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please show output as well! 2) A sports club needs a program to manage its members. Your task is to define and test a class

please show output as well! image text in transcribed
2) A sports club needs a program to manage its members. Your task is to define and test a class called "Member" for this purpose. - Define the "Member" class where members have a number (type integer), a name (type string), and a birthdate (type Date is a class holding month, day, and year data). Create a Date class. Since a member's birthday will not change, the data member for birthdays must be defined as a const. - Overload the constructor to allow for entering a date as an object as well as three values for day, month, and year. - Implement the necessary methods, i.e. functions within the class. - Test the new "Member" class by creating at least two objects with the data of your choice and calling the methods you defined. - Add a static member called "ptrBoss" to the class. This pointer indicates the member who has been appointed as chairperson. If no chairperson has been appointed, the pointer should point to NULL. - Additionally, define the static access methods getBoss() and setBoss(). Use a pointer to set and return the object in question. - Test the enhanced "Member" class by reading the number of an existing member, making the member the new chairperson and displaying the chairperson using getBoss()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

Explain the different types of Mergers.

Answered: 1 week ago

Question

What is dividend payout ratio ?

Answered: 1 week ago