(2) Write a test program that does the following: Create a Product object with a code "html", description "Crash course HTML", and a price of 19.99. Create a Book object with a code "java",...


(2) Write a test program that does the following:<br>Create a Product object with a code

Extracted text: (2) Write a test program that does the following: Create a Product object with a code "html", description "Crash course HTML", and a price of 19.99. Create a Book object with a code "java", description "Introduction to Java", a price of 59.99, and an author "Daniel Llang". Create a Software object with a code "jdk", description "Java Development KIt", a price of 29.99, and a version of "1.8.0", Display the information of all three objects to the console output using the print methods. Sample run: Testjve Output-W102 run una Product code: html Product description: Crash course HTMI. Product price: 19.99 Product code: java Product description: Introduction to Java Product price: $59.99 Author: Daniel Liang Product code: jdk Product description: Java Development Kit Product price: $29.99 Version: 1.8.0

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here