A sub class that you have defined cannot be used in place of its super class. You find that the super-class has a method that accepts a super-class type parameter.
Which of the following choices is/are TRUE about the sub class?
Options
- The sub class should accept as argument a super-class type only
- The sub class should accept as argument a sub-class type only
- The sub class should accept as argument a sub-class type or super class type
- The sub class method should not have any argument