Television Series Game Thrones Features Several Great Houses Several Characteristics Inclu Q43868899
-
The television series Game of Thrones features severalGreat Houses, each with several characteristics, including the nameof the house, its sigil (i.e., symbol), its motto and the name ofits current head of the house.
-
Create a class to represent such a Great House, based onthe following instructions:
-
The state of the class must include the fourcharacteristics mentioned above.
-
The class must provide a single constructor that takesvalues for all four characteristics.
-
The class must provide function(s) to retrieve allcharacteristics of a House.
-
The class must provide function(s) to update the name ofthe current head of the House.
-
-
Write a driver/main function to demonstrate the classcreated above. In this main function, do thefollowing:
-
Create an object to represent House Lannister. The nameof this house is obviously Lannister, its sigil is a Lion, itsmotto is “Hear me roar!”. Assume that the current head of the Houseis Tywin Lannister.
-
Retrieve and display all the characteristics of HouseLannister.
-
Tywin Lannister is killed! The new head of HouseLannister is now Jamie Lannister. Update the state of the aboveobject to reflect this change.
-
Retrieve and display all the characteristics of HouseLannister.
-
-
Expert Answer
Answer to The television series Game of Thrones features several Great Houses, each with several characteristics, including the n…
OR