I am a beginner so forgive me

H

hackyk

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.
 
M

mlimber

hackyk said:
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-lite/how-to-learn-cpp.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
 
J

Jim Langston

hackyk said:
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.
 
M

Moon2

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top