Question: need answer asap public class Basel private String name; private int x; public Base(String name, int x) super(); this.name = name; this.x = x public
public class Basel private String name; private int x; public Base(String name, int x) super(); this.name = name; this.x = x public String getName) [ return name; public void setName(String name) { this.name = name; 3 public int getX0 return x public void setX(int x) this.x = x ] @Override public String toString return "Base [name=" + name + " x=' + x + 13 define a new class Built Up, which is a subclass of Base. Built Up has one new attribute, y (int type). In addition to the new attribute, please also define the following methods in the Built Up class: . a constructor getter and setter .toString method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
