Final Exam for Beginner Course

Task 5

Please define a public class named TextQuestion that inherits from Question. The TextQuestion class should override the CreateAnswer method that returns a new TextAnswer instance that uses an object initializer to set the values for the Text and Score properties. The Text property should be the input captured by the user. The Score property should be the length of the captured input. You should set the Text and Score properties using the object initializer.

Page 7 of 10