Đã Đóng

Java Program Using Inheritance

Each class should have their own file. Codetheclass Publicationwith the twodata members titleand price(a double). Make the class an abstract class by declaring the abstract method display(), which should havea Graphics object as itsfirst parameter. It shouldhave twomore parameters: onefor the x-coordinate , and one for the y-coordinate wherethe display will take place. Declare and define a two-argumentconstructor that accepts two arguments - one toinitializethe title and one toinitialize theprice. Codethe class Book,whichextends Publication. Class Book hasthe addedinteger data member pageCount. Declare anddefine a three-argument constructorthat accepts the title, price, and pageCount of the book. Thisconstructor should call theconstructor of its publications. The method display() should be defined in this class. The method should display on a Graphics object the title, price, and pageCount of the book. Code the class Tape, which extends Publication. Class Tape has the added integer data member playingTime. Declare and define a three-argument constructor that accepts the title, price, and playingTime of the tape. This constructor should call theconstructor ofpublication. The method display() should be defined in this class. The method should display on aGraphics object the title, price, and playingTime of the tape. Code an Applet class, Project5, in its own file. (a) Declare an array inventory[] of threePublication references. (b) In init(),makethe first referenceof inventory[] referto aBook object, created using new, for the title "C++ for Business Programming" with a price of 54.95, and a page count of 815. (c) In init(), makethe second referenceof inventory[] refer to aBook object, created using new, for the title "The Killer Angles" with a price of 5.99, and a page count of 355.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. (d) In init(), make the third reference of inventory[] refer to a Tape object, created using new, for the title "The Beatles Anthology II", with a price of 34.95, and a playing time of 137. (e) In paint(), code a for loop to display the data for the three objects referred to by the references of inventory[] by executing the display() method for the targets of the references. The applet does not have to handle events.

## Platform

Any windows. jcreator as the text editor

Kĩ năng: Kĩ thuật, Java, MySQL, PHP, Kiến trúc phần mềm, Kiểm tra phần mềm

Xem nhiều hơn: java program using inheritance, program to make a text editor php, programming text editor php, programming text editor, programming inheritance, program for java programming, java programming source code, java programming price, java programming platform, java programming editor, java programming business, java programming book, java functional programming, java 1.5 for loop, inheritance programming, functional programming java, functional programming in java, for loop in c programming, for loop c programming, first class objects in java

Về Bên Thuê:
( 1 Nhận xét ) United States

ID dự án: #2922269

24 freelancer đang chào giá trung bình $23 cho công việc này

hernest

See private message.

$25.5 USD trong 14 ngày
(121 Nhận xét)
6.8
sanatanvw

See private message.

$29.75 USD trong 14 ngày
(71 Nhận xét)
5.5
bokbokan

See private message.

$12.75 USD trong 14 ngày
(78 Nhận xét)
5.2
mstrocan

See private message.

$8.5 USD trong 14 ngày
(65 Nhận xét)
4.7
specialist33

See private message.

$8.5 USD trong 14 ngày
(5 Nhận xét)
4.7
anilmauryavw

See private message.

$34 USD trong 14 ngày
(16 Nhận xét)
4.3
teamvw

See private message.

$42.5 USD trong 14 ngày
(35 Nhận xét)
3.8
neelemtechn

See private message.

$29.75 USD trong 14 ngày
(19 Nhận xét)
3.6
vw627017vw

See private message.

$21.25 USD trong 14 ngày
(24 Nhận xét)
3.5
patrica

See private message.

$38.25 USD trong 14 ngày
(19 Nhận xét)
3.2
AnnMary

See private message.

$17 USD trong 14 ngày
(14 Nhận xét)
2.9
technocommercial

See private message.

$85 USD trong 14 ngày
(6 Nhận xét)
4.4
itpillars

See private message.

$25.5 USD trong 14 ngày
(11 Nhận xét)
2.7
vw767279vw

See private message.

$12.75 USD trong 14 ngày
(17 Nhận xét)
2.7
imidebest

See private message.

$34 USD trong 14 ngày
(7 Nhận xét)
2.5
akshodhan

See private message.

$17 USD trong 14 ngày
(1 Nhận xét)
2.5
vw653941vw

See private message.

$17 USD trong 14 ngày
(11 Nhận xét)
2.4
nickyro

See private message.

$12.75 USD trong 14 ngày
(8 Nhận xét)
2.3
vw627985vw

See private message.

$8.5 USD trong 14 ngày
(3 Nhận xét)
1.3
jamiehiggins

See private message.

$11.9 USD trong 14 ngày
(1 Nhận xét)
0.5