Question: Question 1 Implement a class Product. A product has a name and a price, for example new Product(Toaster, 29.95). Supply methods getName0. getPrice0, and setPrice0.

 Question 1 Implement a class Product. A product has a name
and a price, for example new Product("Toaster", 29.95). Supply methods getName0. getPrice0,

Question 1 Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName0. getPrice0, and setPrice0. Write in a program that makes two products, prints the name and price, reduces their prices by $5.00, and then prints them again. C:\W ?NNT\System32\cmd.exe ? product1: nane-Toaster. price-$29.95 product2: nane Microwave, price $124.95 product1: nane-Toaster, price $24.95 product2: nane Microwave, price $119.95 Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!