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 : java
Make a class called Product with private attributes productPrice, productName, productDesc. Write the methods called calculateTax which will calculate the tax 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 p 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
