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
2 ответов
+ 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)
0
👍🏾👍🏾Got It!!