Here is the question:
The Person class has two attributes, name and age. We want to create a subclass of Person, called Oldie, that represents someone who is getting on in age, say about thirty years old or older. Note the additional boolean-valued attribute called perryComoFan in Oldie. If you are an Oldie, you are either a fan of Perry Como or you are not.
For this exercise, write a complete constructor for the Oldie class. Your constructor should have three parameters: a String parameter called n, an int parameter called a, and a boolean parameter called p. Your code should initialize the name and age attributes to the value of n and a respectively. Your constructor must also assign the value of p to the perryComoFan attribute of the class.
Here is my code that I tried but it says it's wrong! I even tried used super(n, a); instead of the this. statements:
public class Oldie extends Person { private boolean perryComoFan; Public Oldie(String n, int a, boolean p) { this.name=n; this.age=a; perryComoFan=p; } }