I am new to programming in general, and had a doubt about object oriented programming in Python. I just learnt about objected oriented programming, and it sounds really useful, except I cannot figure one thing out.
Take this example: I have a company, and I am trying to manage employee information. I want to do this by using classes. Creating a Employee class, and having instance variables such as salary, address, age, etc. But, I wanted to create a GUI from which I could add the name of an employee and his/details, and have that employee become a Employee class.
I do not know of a way in python to do that yet. All the object oriented programming tutorials I have seen do not address this. Is there no other way than to manually add his name in my code editor and run the code.
Or is my approach to this issue wrong? Is this not the best way to use object oriented programming, and some other approach would work better? Then where is object oriented programming best used?
Not_GOd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.