All objects have access to the methods of the ____________ class.
1 answer:
Answer:
Super Class.
Explanation:
The objects in the sub class or the child class have access to the super class or base class.
for example:-
class vehicle{
public int color;
public int numtyres;
public void type()
{
if(numtyres==2)
{
system.out.println("Two wheeler");
}
else if(numtyres==3)
{
system.out.println("Three wheeler");
}
else
system.out.println("four wheeler");
}
}
class motorvehicle extends vehicle{
public int gears;
public int eng_cap_cc;
}
In the above written classes class motorvehicle has access to the method type of the class vehicle and vehicle is the superclass of motorvehicle.
You might be interested in
A i think idk im trying to earn points
Answer:
i think its 29
- add all the numbers up and divide by how many numbers there are.
Answer:
it would be the first one because it's the header and that's what applies
A <span>cripple stud is what is use for windows and doors
</span>