Dec-01-2020, 06:43 AM
It looks like you misunderstand OOP concept. You just wrap some functions disguised as
Also you pass some arguments, like
I would suggest you rethink your approach.
Class is a blue-print of an object you want to create [multiple] instances of. For example a
__init__()
method of a "class" and then call them by instantiating the class while throwing away the created instance.Also you pass some arguments, like
location
in the __init__ method of demographics
, but don't use it at all.I would suggest you rethink your approach.
Class is a blue-print of an object you want to create [multiple] instances of. For example a
Student
class would be a good example. Then it may have different methods and properties (i.e. attributes)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs