Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Dates and Times in Python (2014) Let's Build a Timed Quiz App The Question Classes & the Plan

Carlos Caro
Carlos Caro
9,528 Points

Would it make sense to have only one class with Add and Multiply as methods of the Question class?

I understand that Kenneth is trying to show the value of inheritance but I am wondering if it is really necessary to have 3 classes when I believe this could be only one class with 3 methods

1 Answer

Dongfeng Gu
Dongfeng Gu
12,281 Points

To my point of view, it doesn't make sense that if we define Add and Multiply as method of the Question Class, because every instance of Question (question1, question2, question3...) will have every question method of Question Class, this will make instance of Question more like a general Question not a specific question.