...

/

Challenge: Polymorphism

Challenge: Polymorphism

Write an abstract class and implement abstract methods for child classes using polymorphism.

We'll cover the following...

Task

An abstract User class is given below. It commits the classes that inherit from it to calculate the number of scores that a user has depending on the number of articles that they have authored or edited. On the basis of the User class, create the Author and Editor classes. Both classes should calculate the number of scores with the method calcScores() ...