top of page

PROGRAMMING CHALLENGES

Book Management System

Difficulty:

2 Medium

2.6 OOP

Topic:

Create a class Book with attributes title, author, and pages. Write the constructor for this class and a method isLong() that returns true if the book has more than 300 pages.

The constructor should initialize all attributes. The isLong() method checks the pages attribute and returns a boolean.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page