subject
English, 31.05.2020 03:57 glocurlsprinces

Class Book represents information about any textbook and has two attributes: Title and Author, where Title [String] is the book title (e. g. “Computer Organization and Architecture”) and author is an object of class Author which includes author’s name (e. g. “William Stallings”), Author-ID, Employer Name. Author class inherits class Person which includes First Name, Last Name, SSN, Gender.

Note that any string variable is variable length. So you need to use dynamic memory.

PART1

(a) Define class Book including all necessary data members and access member functions.

(b) Implement setter and getter methods for title and author.

(c) Implement constructor that takes required arguments
(d) Implement destructor.
(e) define a variable that can be used to store the number of active objects of the book class

PART 2

(a) Define classes Author & Person including all necessary data members and access member functions. Also define the inheritance between both classes.

(b) Implement setter and getter for data members. ]]

(c) Implement Constructors & Destructors.

(e) define a data member that can be used to store the number of active objects of the author class.

PART3

Write main program that do the following:

Creates an object (b1) of Book and another object (a1) of Author class.

Create a pointer to anonymous object of class Book (bptr).

Print author first name using bptr using required functions

Change employer name for a1 using required functions

Implement and use the required function to insert object details of author inside object of book as follows:

b1+=a1;
c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++

ansver
Answers: 2

Another question on English

question
English, 21.06.2019 23:50
Read the excerpt from flannery o'connor's "the life you save may be your own although the old woman lived in this desolate spot with only her daughter and she had never seen mr. shiftlet before, she could tell, even from a distance, that he was a tramp and no one to be afraid of. his left coat sleeve was folded up to show there was only half an arm in it and his gaunt figure listed slightly. which phrase connects these characters to the southern gothic genre? half an arm she had never seen his left coat sleeve folded up
Answers: 2
question
English, 22.06.2019 00:30
Myths often function as a connection to the , or the customs and beliefs, of a group of people.
Answers: 2
question
English, 22.06.2019 04:30
In the song mallam sile sings in lines 113 through 130 the knife probably represents
Answers: 1
question
English, 22.06.2019 07:00
Plz im failing ela prompt: in a well-developed paragraph using the r.a.c.e. method, explain the allusion found in the advertisement. be sure to include an explanation of the character and how the allusion is used to sell the product. advertisement: excerpt from the christmas carol: use this information to deepen your understanding of the character. oh! but he was a tight-fisted hand at the grindstone, scrooge! a squeezing, wrenching, grasping, scraping, clutching, covetous, old sinner! hard and sharp as flint, from which no steel had ever struck out generous fire; secret, and self-contained, and solitary as an oyster. the cold within him froze his old features, nipped his pointed nose, shriveled his cheek, stiffened his gait; made his eyes red, his thin lips blue; and spoke out shrewdly in his grating voice. a frosty rime was on his head, and on his eyebrows, and his wiry chin. he carried his own low temperature always about with him; he iced his office in the dog-days; and didn’t thaw it one degree at christmas. race: use this organizational method to guide your writing- r – restate the prompt a – answer the prompt/questions c – cite evidence e – explain the evidence write your response here:
Answers: 1
You know the right answer?
Class Book represents information about any textbook and has two attributes: Title and Author, where...
Questions
question
Mathematics, 24.08.2019 16:50
question
Social Studies, 24.08.2019 16:50
question
History, 24.08.2019 16:50
Questions on the website: 13722361