subject

You must write c# classes which are used to manage product review data for books and cars. you will write an abstract class called review which abstracts common properties (review rating and comments). you will then create an interface responsible for the functionality to display the reviewcontent. then, you will create 2 concrete classes which inherit from review and implement the interface. finally, you will create console applicationwhich will create 2 carreview instances and 2 bookreview instances and display them in the console. 1) implement an abstract c# base class called review with private members and public properties which accept a rating number (1 through 5 only, type int) and comments (type string, maximum of 200 characters only). your class should have public setters/getters. your setters should enforce the constraints on values for rating and comments. 2) implement two concrete classes which inherit from this base class named carreview and bookreview. carreview should have a unique private string field and public string property called dealership. bookreview should have a unique private field/public property called title. do not put dealership in bookreview, and do not put title in carreview. these should be unique in each concrete class. 3) create a public interface called ireviewdisplayer and define a method called displayreview() which returns type string. 4) implement the ireviewdisplayer interface in carreview and bookreview. in carreview, return the formatted string in displayreview implementation: rating: {0} dealership: {1} comments: {2} in bookreview, return the the formatted string in displayreview implementation: rating: {0} title: {1} comments: {3} 5) create a c# console application that uses the console and input from the user to create 2 car reviews and 2 book reviews. 6) add all four of these reviews to a single list type. hint: this is going to be list 7) create a method that accepts the list parameter, iterates through them, and displays the contents of displayreview method in the console. all four reviews should display in the console. it does not matter what order they are in. 8) end the program gracefully with a console. readline()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
You know the right answer?
You must write c# classes which are used to manage product review data for books and cars. you will...
Questions
question
Mathematics, 05.02.2021 20:20
question
Arts, 05.02.2021 20:20
question
Social Studies, 05.02.2021 20:20
Questions on the website: 13722363