🔒 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
  • 853
    Views
  • 2
    Participants
Last reply from:
PHC-LAU_XXIV

Trending Topics

Online now

Members online
1,106
Guests online
989
Total visitors
2,095

Forum statistics

Threads
2,274,722
Posts
28,957,832
Members
1,233,408
Latest member
0226Mjane
Back
Top