By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,440 Members | 1,436 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,440 IT Pros & Developers. It's quick & easy.

I am a beginner so forgive me

P: n/a
Hey I would like to know how i cud write classes that would implement
its own methods so wen i us them I do not have to write the code in the
main program.

Dec 28 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
hackyk wrote:
Hey I would like to know how i cud write classes that would implement
its own methods so wen i us them I do not have to write the code in the
main program.
Step one: buy a good C++ book or three (cf.
http://www.parashift.com/c++-faq-lit...html#faq-28.4).
I'd recommend _Accelerated C++_ by Koenig and Moo, which teaches C++
the right way from the ground up.

Step two: read it and do the exercises.

By then, your question (and a whole lot more) will be answered. If you
can't afford that book and your library doesn't have it, read Bruce
Eckel's _Thinking in C++_, which is another good book that is available
online for free (google for it), or google for a tutorial on C++
basics.

Cheers! --M

Dec 28 '06 #2

P: n/a
"hackyk" <ja*******@gmail.comwrote in message
news:11*********************@48g2000cwx.googlegrou ps.com...
Hey I would like to know how i cud write classes that would implement
its own methods so wen i us them I do not have to write the code in the
main program.
Yes.
Dec 29 '06 #3

P: n/a
I think that is the point of object oriented programming, Im not quite sure
if I understand the question but if that is what you want to do, look at
"Thinking in C++" <- google I think there is a free electronic version
online, by Bruce Eckel

"hackyk" <ja*******@gmail.comwrote in message
news:11*********************@48g2000cwx.googlegrou ps.com...
Hey I would like to know how i cud write classes that would implement
its own methods so wen i us them I do not have to write the code in the
main program.

Dec 31 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.