Why is my class worse than the hierarchy of classes in the book (beginner OOP)?
- by aditya menon
I am reading this book. The author is trying to model a lesson in a college. The goal is to output the Lesson Type (Lecture or Seminar), and the Charges for the lesson depending on whether it is a hourly or fixed price lesson. So the output should be:
lesson charge 20. Charge type: hourly rate. lesson type seminar.
lesson charge 30. Charge type:…