In this task, we will create books written by the earthly authors Mark Twain and Agatha Christie. Using the MarkTwainBook and AgathaChristieBook classes, naturally, which inherit Book. You need to implement all the abstract methods in these classes. And in the parent class, implement the getOutputByBookType method.
OOP: Books
- 16
Locked
Comments (8)
- Popular
- New
- Old
You must be signed in to leave a comment
Amo programmareExpert
14 February, 12:35
This task really helps to understand constuctors and their order when using class inhertiance.
+1
Олег БайбулаExpert
14 January, 05:26
Good task, but it was easy for me.
0
LuisRC
14 February 2022, 16:16
Really a tough task to me. It took to me two days of reading and debugging to see what happened inside.
A really nice task to learn about "this", "super" and OOP. 👍
+1
Jurij Thmsn
4 March 2021, 13:59
really nice task. It helped me to understand "this" and inheritance much better!
+1
BlueJavaBanana
6 May 2020, 15:59
It should be noted that your constructor for the Mark Twain and the Agatha Christie classes should invoke the parent class constructor e.g. super("Mark Twain") and also initialize the title for the child class e.g. this.title = parameter.
This really isn't clear in the description.
+3
Andrei
4 December 2020, 12:39
Yes, very true!
+1
IVAN
5 February 2020, 03:27
Please, can Someone Help me!?
0
Roman
5 February 2020, 08:14
Please refer to Help section at our course.
0