Question: Team-based Learning Activity 2 2 points Subjects: develop a multi-class Java NetBeans project, testingyour understanding of Class and Inheritance. Note: Students can form a team

Team-based Learning Activity 2 2 points Subjects: develop a multi-class Java NetBeans project, testingyour understanding of Class and Inheritance. Note: Students can form a team of up to 3 members to work on this java project together and it is ok to have a smaller group. Please include the names of your team members in your submission, and each team only needs to submit one copy on Canvas. Instructions: Read Chapter 11 on Inheritance. Following the instructions below to createa NetBeans project. In this project, you are required to define a Product class and a Book class whereas the Book class is a subclass of the Product class. For each class, define the data fields, constructors, and methods according to the following UML description. Note: for the 2nd constructor of Product -code: String -description: String -price: double +Product ( +Product(newCode: String, newDescription: String, newPrice: double) +getPrice(): double +setPrice(price: double): void +getCode(): String +setCode(code: String): void +getDescription():String +setDescription(description: String): void +toString(): Strin Book author: Strin +Book() +Book(newAuthor:String, newCode:String, newDescription: String, newPrice: double) +getAuthor(): String +setAuthor(author: String): void +toString(): String Main method requirement Create an instance of the Product class with a specific code, description, and price Create an instance of the Book class with a specific author code, description, and price Use a print statement and the toString methods to display these two instances
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
