+ 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