Looking for help setting-up a java class

Assignment Help Basic Computer Science
Reference no: EM132099012

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: EM132099012

Questions Cloud

Welcome banner and a farewell : My professor wants a welcome banner and a farewell banner in a method in main class of my program to launch as soon as the program starts and ends I'm just a li
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.
Create the program for an atm machine : How can we create the program for an ATM MACHINE to perform the following tasks
What are the terms methods : What are the terms methods, objects, classes, and the object-orientated nature of Java with the help of segments of codes in Java programming?
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 : 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 corresponding
Write out a pseudo code : Can somebody help me write out a pseudo code, and help me solve the following according to the pseudo code
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
Creating a while loops with if else structures : Im having problems with creating a while loops with if else structures. My program first presents a menu to the user: (A) to pan a room or (Q) to quit

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Mix of frito-lay inventory

How does the mix of Frito-Lay's inventory differ from those at a machine or cabinet shop (a process-focused facility)?

  Define plate midpoint temperature for black oxidized surface

A 0.5-m-long thin vertical copper plate is subjected to a uniform heat flux of 1000 W/m2 on one side, while the other side is exposed to air at 5°C.

  How might a change control system help

How might a change control system help?

  Characters of a word are stored in a character

The characters of a word are stored in a character array A1 of dimension 10. Assuming a stack data structure S and push(S, char c) and char pop(S) procedures on S are available, write a program in pseudocode or C with brief comments that will push..

  Find the greatest common divisor of 234 and 124

Find a counterexample to the claim that if the greatest common divisor of a and b is not 1, there exists a unique r and a unique s such that ra + sb = 1.

  How many times does the inner loop execute

If a block of program code is composed of nested Loo p statements and the outer loop count is 3 and the inner loop count is 5, how many times does the inner loop execute?

  Think about a world in which there were no international

Think about a world in which there were no international trade. What would be different in your life? In your career in Human Resources?

  Write a client to access the web service

Exercise 6 Create a Web service that returns the amount that will result if a given initial amount is deposited at a specified interest rate for a specified number of years, if the interest is compounded yearly.

  What will be the change in resistance of a strain gauge

What will be the change in resistance of a strain gauge, with a gauge factor of 4 and resistance of 50Ω if the gauge is subjected to a strain of 0.002?

  List three experiences that enhanced your learning

a) List three experiences that enhanced your learning. Explain why they enhanced your learning.

  Design the bcd-to-seven-segment decoder using nand gates

Design the BCD-to-seven-segment decoder using a minimum number of NAND gates. The six invalid combinations should result in a blank display.

  What are graphs

What are Graphs? How are they used in Searches and Minimum Spanning Trees? What is the difference between the Depth First Search and the Breadth First Search?

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