Oct-29-2017, 11:53 PM
(This post was last modified: Oct-29-2017, 11:53 PM by QueenSvetlana.)
(Oct-29-2017, 11:50 PM)metulburr Wrote: inheritance would make sense here.
Quote:return "ID: " + self.iden + " " + " First: " + self.first_name + " Last Name: " + self.last_name + " " + " Type: " + self.student_type'
return "ID: {} First: {} Last Name: {} Type: {}".format(self.iden, self.first_name, self.last_name, self.student_type)
Thanks for the help. Have I implementation my abstract class properly?
Quote:you can get rid of the private variables as well as the getters and setters. If you need the class variables, just use them.
Why not use the getters/setter?