Question: Using JAVA programming This program creates a completely new class for a publisher that make textbooks The data attributes for the class will be Title,
This program creates a completely new class for a publisher that make textbooks The data attributes for the class will be Title, Author, Price (as a double to hold the dollars and cents.) Have the constructor that takes all three attributes. Make sure to do the gets and sets for all three attributes. Create 2 additional methods in the Textbook class, one that gives a message with the Title Author and Price to the user, and a second one that tells that it's an online book gives a message with the Title Author and online price (75% of the price) to the user. Create a java application that instantiates at least one object of the Textbook class you created and test its two methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
