filmov
tv
Java Inheritance, ChoiceQuestion class Inherits superclass Questions class

Показать описание
In OOP design, inheritance is a relationship between a more general class ( called superclass) and a more specialized class ( called the subclass). The subclass inherits data and behavior from the superclass.
Example of class - Example: Computer-graded quiz
Questions Example: Fill in the blank
Section 1 Example:
A quiz consists of questions, and there are different kinds of questions.
Fill in the blank
Choice ( single or multiple)
Numeric ( where an approximate answer is ok. ex 1.33 when the actual answer is 3/4)
Free response.
Example of class - Example: Computer-graded quiz
Questions Example: Fill in the blank
Section 1 Example:
A quiz consists of questions, and there are different kinds of questions.
Fill in the blank
Choice ( single or multiple)
Numeric ( where an approximate answer is ok. ex 1.33 when the actual answer is 3/4)
Free response.