Mar-19-2019, 01:17 PM
(This post was last modified: Mar-19-2019, 01:27 PM by LadySvetlana.)
(Mar-19-2019, 01:27 AM)micseydel Wrote: What's LSP? I have a degree in computer science and five years' experience with software engineering and I'm unfamiliar with the acronym.Liskov substitution principle
Quote:That said, what are you doing that actually needs super()?I wanted my classes to co-operate, and in the future you may want to pass in additional arguments.
Quote:That said, I'm confused by your final code. You don't show the use of MissingStudentValue but I'm doubtful that you pass more than two arguments to it (after all, why would you?)I thought it was unnecessary, because we all know how to raise exceptions, and it wasn't relevant to my overall problem.