Here is the code for a class named Kent. You wi see this class creating a public
ID: 3796087 • Letter: H
Question
Here is the code for a class named Kent. You wi see this class creating a public class Kent private int factor: public int get Factor return factor public void set Factor (int factor) f this factor factor Create a class named Essex with the following characteristics: The class has in instance variable, ascent, of integer type. The class has an instance variable, base, that is an object of class Kent. There is a method with the header public int get mpex that returns the sum of the ascent and the factor of base.Explanation / Answer
class Essex {
private int ascent;
private kent= new kent ();
public int getApex (){
return ascent + Kent.getFactor;
}
}