I have been using this site for close to 4-5 years now and i have barely gotten out of the basics of c++ programming, i always start off with great ideas for what i want to do but start to lose motivation then stop for a few months then get back into it, i really really want to learn how to make more complex programs.
i pretty much get stuck at class development every time, this time round i am just trying to take my time but i am at classes again and fighting to continue, i just can't find decent material on this subject.
If anyone has any tips for me on class development and maybe keeping motivation because at this rate i feel like i will never learn how to program anything at all let alone something useful.
In order to get yourself able to build complex object oriented programs,i suggest you first start with simple programs...
Create a family,that has one father,one mother and two children.Father,mother and children are all humans,so they inherit from a class human.Every human has a name ,a surname and an age.Every father has a job and his favorite sport.Every mother has as well a job and shop for clothes.Every children has as its attribute the school he is going to and his best friend.All attributes described(e.g. age of human) are data members of the respective class.
After constructing your classes,just go and create the family i just described in your main.Feel free to add some attributes if needed,give preferred names ,or even create your own family(it might has more than two children).
Again,when you find yourself in doubt about the requirements,take arbitrary decisions ,which of course make sense in terms of OOP (object-oriented programming).
I think that is a good very first step :-)
Hope this helps :D
I'll get on it <<endl;
Originally Posted by std10093