Looking for help setting-up a java class

Assignment Help JAVA Programming
Reference no: EM132057192

Looking for help setting-up a Java class, with the following requirements:

  • Class Painting, which is a subclass of Class Artwork
  • Instance variables
  • paintType: String type // oil, watercolor, etc.
  • material: String type // material it is drawn on, such as paper, canvas, wood, etc.
  • A constructor
  • Painting (String id, String artist, int year, String location, String paintType, String material)
  • Input parameter: id, artist, year, location, paintType, material
  • Precondition:
  • year is a positive integer
  • Postcondition: A new Painting object with given attributes has been created.
  • Methods
  • getPaintType( )
  • nput parameter: None
  • Output: The paintType of the painting
  • getMaterial( )
  • Input parameter: None
  • Output: The material of the painting
  • setPaintType(String paintType)
  • Input parameter: paintType
  • Output: None
  • Postcondition: The paintType of the painting was set to the given paintType.
  • setMaterial(String material)
  • Input parameter: material
  • Output: None
  • Postcondition: The material of the painting was set to the given material.

Reference no: EM132057192

Questions Cloud

Demonstrate the class in a program that contains a car : Demonstrate the class in a program that contains a Car object, and then calls the accelerate method five times. After each call to the accelerate method
Create a very simple four function integer calculator : Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields.
Predict the size of a population of organisms : Program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average
Create the program for an atm machine : How can we create the program for an ATM MACHINE to perform the following tasks
Looking for help setting-up a java class : Looking for help setting-up a Java class, with the following requirements:
Demonstrate the class in a program that takes 12 doubles : Demonstrate the class in a program that takes 12 doubles from the user (take the doubles in the order of the months of the year, the first
Java application based on your pseudo code : Can somebody help me write out a pseudo code, and help me solve the following according to the pseudo code
Principal components involved in developing a program : What are the principal components involved in developing a program? Describe the benefits of breaking up a program into small modules and provide an example
Create a class named app : Create a class named App1 which provides a GUI window. Users will enter 24-bit RGB color values and the window will then display them.

Reviews

Write a Review

JAVA Programming Questions & Answers

  1 securityimplement security so that all users can view the

1. security.implement security so that all users can view the information about the projects but only authenticated

  Explain different vulnerabilities and attack

Calculate the messages sent in steps 1 to 4 if A is sending $ amount equals to your NYIT ID to C - Explain two different vulnerabilities and attack scenarios

  Compute area and perimeter of a polygon

Create a project that would let a user compute area and perimeter of a polygon

  Displays every perfect number from 1 through 1000

Write an application that displays every perfect number from 1 through 1000. A perfect number is one that equals the sum of all the numbers that divide evenly into it.

  Create java program that store the random values in array

COP2551 Intro to OOP Homework - Create a Java program that performs Store the random values in the array. Practice sorting arrays in a Java program

  Problem 1write a java class called problem1 implement the

problem 1write a java class called problem1. implement the following method in your classpublic static int

  Create a gantt chart for the project

Create a Gantt chart for the project. Compare and contrast the information that one receives from a Gantt chart, versus that of a PERT diagram

  standard graph with four quadrant

Write a program in java that asks the user for values of x and y, and displays the point as an ordered pair along with a message that describes where that point falls on the standard graph with four quadrant.

  Write a java program based on the pseudo code you designed

Write a Java program based on the pseudo code you designed. The program should have meaningful variable names CSE1PGX.

  Design a program that will gather a group of floating point

Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered.

  System schedule on a multiprocessor-multicore environment

This program assignment is provided to let the students understand how to the Operating Systems schedule all the processes on a multiprocessor or multicore environment.

  Design a java class named clock

Design a class named Clock. You should use your IDE for this exercise. The class contains private data fields for startTime and stopTime, a no argument constructor that initializes the startTime to the current time.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd