Respuesta :
Answer:
The correct answer is d.extended.
Explanation:
In order to have a superclass in Java, it is indispensable to extend, or inherit from, a class. It means that a subclass is created by an extended class. All the classes in Java only need one superclass from which it inherits some of its fields and methods.
Answer:
d.extended
Explanation:
The answer is d.
You usually has a top public class, for example, animals, with it's own attibutes. Then you can have other classes extending animals, for example, cats. These classes have both the attributes of the parent class, and their own attributes.
So the code goes something like this
public class Animals{
public Animals(){
\\constructor with attributes
}
\\code
}
public class Cats extends Animals{
public Cats(){
\\constructor with the extra attributes.
}
\\code
}