Question: Programming 2 : java Make a class called Product with private attributes productPrice, productName, productDesc. Write the methods called calculateTax which will calculate the tax

Programming 2: java
Make a class called Product with private attributes productPrice, productName, productDesc. Write the methods called calculateTax which will calculate the tax 8.25% of the productPrice and return the result. Write the setters and getters for the atttributes.Make an app with main method and instantiate a object Product called p1, set the price, name, description. call calculateTax and display the result.

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!