473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

I am a beginner so forgive me

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
3 1232
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Gerry | last post by:
Hi, Im starting to learn C++ and am looking to get myself a textbook to help me along. Can anyone on here recommend a book which will give me good foundations and take me up to OOP etc in...
2
by: Alex | last post by:
Hello I am interested learn more about .NET but am uncertain of exactly what niche it fills in the world of programming. (The more I read the more I am confused). What I am looking for is the...
12
by: Sathyaish | last post by:
Please forgive my nescience. I have worked extensively on Win32 but I am only familiar with C and C++. Lately, I have been practicing C from K&R. Here 're a few doubts I have written in the...
13
by: MonkeeFace | last post by:
Hi, With every click on Button1 i want to change (increase) number written on it, and i try to do it with this simple code: private void Button1_Click(object sender, System.EventArgs e) { ...
4
by: Curt Lashley via .NET 247 | last post by:
I am totally new to .net So far, I hate it. I been programming vb since vb3 and .net took a 1 line program and made it a 47 lines program filled with stuf that appears meaningless... ok, I know...
6
by: Alex | last post by:
Hello I am intersting in developing and my background is VBA used in Excel and a brief intro to Java. I am interested in learning beyond VB and feel that C++ would be a very good language to...
8
by: Scott Schluer | last post by:
Hello, I'm fairly experience with VB.NET in so far as it's syntax is concerned, however I'm coming from a web-based environment. Typically, when I want to store data (i.e. user preferences,...
1
by: Ranginald | last post by:
Hi, I have an asp.net project and I am in the process of trying to make it into a truly object-oriented project -- as I have just learned I cannot have multiple codebehind files in a single...
13
by: Ranginald | last post by:
I am new to oop so please bear with me: Could someone please explain to me why the "protected void runCategory() method" cannot access the local ddlCategory object that is easily accessed in...
5
by: Jacky Luk | last post by:
import java.awt.Graphics; public class printtest extends java.applet.Applet { public void init() { } public void paint (Graphics g) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.