The MarkTwainBook class constructor should call the constructor of the parent class (Book) with the argument "Mark Twain".
To pass this you have to name the field: "title" .
or you wont pass. I was using bookTitle and it was giving me errors
The problem everybody has
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
30 September 2020, 13:17
This was all in the task conditions:
- The AgathaChristieBook & MarkTwainBook class must correctly implement a constructor with one String parameter (book title).
- The AgathaChristieBook & MarkTwainBook class must have a String field title (book title).
- The AgathaChristieBook & MarkTwainBook class constructor should call the constructor of the parent class (Book) with the argument "Agatha Christie" or "Mark Twain".
0