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 22:50
Read the excerpt from act 1, scene 3, of julius caesar. cassius. am i not stayed for? tell me. cinna. yes, you are. o cassius, if you could but win the noble brutus to our party— cassius. be you content. good cinna, take this paper and look you lay it in the praetor’s chair, where brutus may but find it. and throw this in at his window. set this up with wax upon old brutus’ statue. all this done, repair to pompey’s porch, where you shall find us. is decius brutus and trebonius there? cinna. all but metellus cimber, and he’s gone to seek you at your house. well, i will hie, and so bestow these papers as you bade me. cassius. that done, repair to pompey’s theatre. what is cassius’s motivation for sending brutus the letter? cassius wants to make sure that cinna is on his side. cassius wants to reassure cinna that brutus will follow them. cassius wants to sway brutus to kill caesar. cassius wants to alert brutus about the conspiracy against him.
Answers: 3
question
English, 21.06.2019 23:40
When abigail is interrogated by parris, she: a. claimed that tituba made her do those things. b. admitted that she asked tituba to do those things. c. said that betty and ruth were dancing naked. d. asked for forgiveness from her dear uncle.
Answers: 1
question
English, 22.06.2019 00:00
What else do you think experts can learn from studying the language of written work? what do you think is the value of studying the language of william shakespeare whose writing is over hundreds of years old?
Answers: 1
question
English, 22.06.2019 04:20
2pointsread this passage: "don't worry about me," i said. "i'm not tired at all." oh no,i'm feeling dizzy. this is what they call passing out. don'tdo that. don't pass out. stay upright – stay awake.how does the difference between the character's spoken words and internalthoughts affect the story? oa. it establishes the setting.ob. it introduces a new character.c. it creates dramatic tension.d. it ties up loose ends.
Answers: 2
You know the right answer?
Class Book represents information about any textbook and has two attributes: Title and Author, where...
Questions
question
Mathematics, 08.03.2020 02:41
question
Mathematics, 08.03.2020 02:45
question
Mathematics, 08.03.2020 02:47
Questions on the website: 13722362