Apr-23-2023, 11:14 AM
How do I create a Person class is a generic class, which only stores some basic attributes. These attributes are: name, sex and date of birth (as a datetime object). The attributes must be invisible outside the object.
Write a constructor for this class that takes three arguments (name, sex ('M' or 'F') and date of birth (as a date string)).
Write a constructor for this class that takes three arguments (name, sex ('M' or 'F') and date of birth (as a date string)).