0

Construction statement

Can someone help me with this code plz? I am supposed to use a constructor statement in my parent class and the use a get method. If I didnt use the constructor statement I would use a set & get method?.....But now I dont know what to do on the parent class or the main app to “set” the data with/from the constructor statement?..... https://code.sololearn.com/c5Nfc830Cr0Z/?ref=app https://code.sololearn.com/cBrmSTXfaxl8/?ref=app

17th Sep 2019, 10:23 PM
Jacques Cozart
Jacques Cozart - avatar
2 Answers
+ 1
. you don't need two constructor in Poem but one with two parameters. . write get() method only in Poem . in subclasses use constructor with one parameter for title . set() is not necessary, you can't use set(lines) for subclasses because they are constants.(in that exercise)
19th Sep 2019, 12:11 AM
zemiak
0
đŸ‘đŸŸđŸ‘đŸŸGot It!!
19th Sep 2019, 1:06 AM
Jacques Cozart
Jacques Cozart - avatar