There are somethings i dont understand in classes, for example let us examine this :
we created a class Employee , with private data members firstName, lastName and monthlySalary; we have some functions that performs operations like a constructor, set and get functions on this data members. Now! we create an object of the class. I will like to some things:
1==> is the constructor like a form we fill to enter employee details as soon as a new employee is employed? for example we have a new employee in the company, we want to create an object for him/her from the class employee, are we going to use the constructor for the details ? or are we going to use the set functions? If the class does not have a constructor for the details, what happens with the new employee?
2==> when we have created the employee object, what happens next? is it just that we are going to store it as a record on the computer or database? or are there other things we can use the employee object for?
or does that mean that if we are not going to store or retrieve information from the computer, we dont need classes?
3==> I still have few more questions but i dont want to create a long boring page... May be when i get a reply for this i will paste the rest of my question:confused: