Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ Question 1 Design a new class named memberType. Each object of memberType can hold the name of a person, member ID, and number

In c++ image text in transcribed
Question 1 Design a new class named memberType. Each object of memberType can hold the name of a person, member ID, and number of books bought. Include member functions to perform atleast the following operations on the objects of memberType: create a new member, modify name, show name, modify member ID, show member ID, modify number of books bought and show number of books bought. Add the appropriate constructors. Write the definitions of the member functions of memberType. Make sure your code provides the same output as follows: ember 1: Initialized using the constructor function ame of the person: John Smith, Member ID: 100, Number of books bought: 1 ember 2: Created a new member using utility function of the class lame of the person: Robert De, Member ID: 200, Number of books bought: 2 odify name for member 2: Peter Sam odify member ID for member 2: 300 odify number of books bought for member 2:5 ember 2 pdated name: Peter Sam pdated ID: 300 pdated number of books bought: ress any key to continue

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions