Question: COnsider the following class public class store { Public final double SALES_TAX_RATE = 0.06; private String name; public Store (String newName); { setname( newName); }
COnsider the following class public class store { Public final double SALES_TAX_RATE = 0.06; private String name;
public Store (String newName); { setname( newName); }
public String getName () { return name; }
public void setName (String newName) { description= newName; }
public String toString() { return "name: " + name; }
} }
Write a java class encapsulating a web store, which inherits from store. A webstore has the following additional attributes; an internet address and the programming language in which the website was written. Code the constructor and the toString method of the new class. Include a client class to test the method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
