Hi there I want to know why did you create two classes one in question.dart which only have properties and has a constructor
And other in quiz_brain.dart which makes the properties private and performs the specific task in their respective methods.
Is it not a good a good practice to perform all the tasks related to a specific function inside a same class ? I am really confused
Hi there I want to know why did you create two classes one in question.dart which only have properties and has a constructor And other in quiz_brain.dart which makes the properties private and performs the specific task in their respective methods. Is it not a good a good practice to perform all the tasks related to a specific function inside a same class ? I am really confused