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.
Answer:
Primary storage refers to the main storage of the computer or main memory which is the random access memory or RAM. Secondary storage, on the other hand, refers to the external storage devices used to store data on a long-term basis.