|
|
Back to UserFriendly Strip Comments Index
|
C++ help | by cjolson140 | 2005-05-17 08:59:26 |
| Okay, a few questions back at you. |
by williamashbless |
2005-05-17 09:25:46 |
Were any of these books in actual tutorial style?...I merely ask because I've known a few people who've tried to learn from reference books which are denser and intended for people who need a refresher rather than to learn something for the first time.
There are plenty of C++ tutorial websites that can explain the syntax of a class. But 'object oriented' programming isn't about syntax, it's about design. It can be done in any language at all, and the only real difference is what you have to do to structure your program in that fashion. Some languages are designed better for working in that particular design philosophy. So I'm still wondering what about the syntax (the language keywords and grammar itself) confuses you?
Perhaps you had better ask some questions _here_ about what you're confused about so that we can better direct or instruct you.
For example, the basic layout for a C++ class is:
class ClassName
{
public:
protected:
private:
};
which defines a custom data type of your choosing with one or more sections of a 'public', 'private', or 'protected' nature, which controls how much access the 'outside world' has to data and function (method) members. (rather than the internal components of the class, which always have access).
Are you confused about how to design a single class? About inheritance and class hierarchies? About polymorphism? About access rights? Or is it purely about the syntax required to make these things happen?
(It's trivial enough to do a google search for "C++ tutorial" if that's all you want to know). |
|
[ Reply ] |
|
Syntax is one of the ugly things | by A_flj_ | 2006-11-19 12:55:59 |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|