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 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Why is a multiview sketch drawinf different from other sketches like isometric, two point, and oblique
Answers: 1
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
Questions on the website: 13722360