post  trouble with classes

shadowvillian (17)   Link to this post
hi, ive been trying to learn classes but i cant grasp it... what do you guys recommend i learn before attempting to learn classes?
Zhuge (324)   Link to this post
Have you learned the basics of C++? Like the basic structure of a program, variables, functions, etc? If you have that stuff down there is little else I can do. Classes are the very basis of OOP, like variables & functions are in procedural programming.
mbittel12 (21)   Link to this post
Study it online or out of a book somewhere, look at examples of classes. It's basically calling functions from a separate file, not much different that calling a normal function in a main.cpp
Bazzy (3183)   Link to this post
Here are some good tutorials: http://www.cplusplus.com/doc/tutorial/
shadowvillian (17)   Link to this post
ya im pretty solid on the basics. i can do loops, ifs, arrays, strings, stuff like that. not functions though.
demosthenes2k8 (128)   Link to this post
Then you should learn functions, as it'll make learning classes much easier.
shadowvillian (17)   Link to this post
thanks for the reply demosthenes2k8, ill give it a shot.

Registered users can post in this forum.