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
QuizzNaYeeziey 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.