londonappbrewery / quizzler-flutter-challenge-final

Completed version of the Quizzler project in the Complete Flutter Bootcamp
https://www.appbrewery.co
63 stars 137 forks source link

Why did you use two classes #9

Open akshat009 opened 4 years ago

akshat009 commented 4 years ago

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