🔒 Closed Java code help master

Status
Not open for further replies.

PHC-LAU_XXIV

Eternal Poster
yan po yung tanong


Create a class named Book that contains data fields for the title and number of pages. Include get and set methods for these fields. Next, create a subclass named Textbook, which contains an additional field that holds a grade level for the Textbook and additional methods to get and set the grade level field. Write an application that demonstrates using objects of each class. Save the files as Book.java, Textbook.java, and DemoBook.java.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 885
    Views
  • 2
    Participants
Last reply from:
PHC-LAU_XXIV

Trending Topics

Online now

Members online
448
Guests online
2,392
Total visitors
2,840

Forum statistics

Threads
2,331,964
Posts
29,261,413
Members
1,147,922
Latest member
dvsadvocate
Back
Top