Write a class encapsulating a web store, which inherits from Store. A web store has the following additional attributes: an Internet address and the program- ming language in which the website was written. Code the constructor and the toString method of the new class. You also need to include a client class to test your code.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter1: A First Program Using C#
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question
public class Store
{
public final double SALES TAX RATE = 0.06;
private String name;
public Store( String name )
{
setName ( name );
}
public String getName( )
{
return name;
}
public void setName( String name )
{
this.name = name;
}
public String toString( )
return ( "name: " + name );
}
Transcribed Image Text:public class Store { public final double SALES TAX RATE = 0.06; private String name; public Store( String name ) { setName ( name ); } public String getName( ) { return name; } public void setName( String name ) { this.name = name; } public String toString( ) return ( "name: " + name ); }
Write a class encapsulating a web store, which inherits from Store. A web store
has the following additional attributes: an Internet address and the program-
ming language in which the website was written. Code the constructor and the
toString method of the new class. You also need to include a client class to test
your code.
Transcribed Image Text:Write a class encapsulating a web store, which inherits from Store. A web store has the following additional attributes: an Internet address and the program- ming language in which the website was written. Code the constructor and the toString method of the new class. You also need to include a client class to test your code.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

 Allow the user to enter the internet address (URL) and programming language of the web store.

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Development strategies
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT