I want to make this code. I have error. Thanks you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I want to make this code. I have error. Thanks you.

Error https://code.sololearn.com/cYrWphz97qNY/?ref=app

1st Oct 2020, 5:08 AM
Malick Diagne
Malick Diagne - avatar
2 Answers
+ 5
Error: You haven't created object to invoke behaviour () you directly did it with Sentence class object ,u can't invoke like that so, it's throwing you the error . No more errors apart from this:))
1st Oct 2020, 5:21 AM
chaithra Gowda
chaithra Gowda - avatar
0
Behavior() is belong to Person class, but you called it with item5 TheSentence.
1st Oct 2020, 5:21 AM
你知道規則,我也是
你知道規則,我也是 - avatar