Product - ALL STUDENTS COMPLETE THESE SECTIONS Main Class File AmazonStore.java File Product.java Semester CS367 Spring 2015 Author Thomas Whitburn CS

Product - ALL STUDENTS COMPLETE THESE SECTIONS Main Class...

This preview shows page 1 - 2 out of 2 pages.

/////////////////////////////////////////////////////////////////////////////// // ALL STUDENTS COMPLETE THESE SECTIONS // Main Class File: AmazonStore.java // File: Product.java // Semester: CS367 Spring 2015 // // Author: Thomas Whitburn // CS Login: whitburn // Lecturer's Name: Jim Skrentny // //////////////////// PAIR PROGRAMMERS COMPLETE THIS SECTION //////////////////// // // Pair Partner: Haomin Li // Email: [email protected] // CS Login: haomin // Lecturer's Name: Jim Skrentny // //////////////////////////// 80 columns wide ////////////////////////////////// /** * Stores the name, category, price and rating of a product */ public class Product { private String name; private String category; private int price; private float rating; /** * Constructs a Product with a name, category, price and rating. * * @param name name of product * @param category category of product * @param price price of product in $ * @param rating rating of product out of 5 */ public Product(String name, String category, int price, float rating){
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Spring '08
  • MarvinSolomon
  • Data Structures, The Return, Thomas Whitburn, param category category

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture