-2

Create a class named Painting that cntains fields for a painter's title,artist,medium (such as colour),price,and gallery commissoin. Create a constructor that initializes each value and create instance method that get and set field to an appropriate default value,and create instance method that get and set the fields for title,medium,and price. The gallery commission field cannot be set from outside the class;it is computed at 20 percent of the price each time the price is set. Save the class as Painting.java

2
Contributors
1
Reply
7
Views
2 Years
Discussion Span
Last Post by JamesCherrill
1

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.