🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #202

Re: Understanding classes

#202
From: amark
Date: Tue, 23 Jun 1998 00:00
33 lines
1792 bytes
In article <6mnh5e$ras$0@208.136.119.106>,
  "Daniel & Charlotte" <cddundon@aiinc.com> wrote:
>
> I'm just learning C++.  I'm having some trouble understanding how to create
> a class.  I think I have the syntax down.  It's learning why certain things
> are put into private and public.  And how you come up with the void
> function.  If you know of any books that could possibly help me get over the
> rocky spot, it would be appreciated.
>
> Thanks
>
> Charlotte
>
>
__________________________________________

  Make private all the data members and methods, you don't wish
to give the direct access to user to.
  Make protected all the members, that the derived class may
need to access directly, but not the user's applications themselves.
  Make public all the data and methods, open for everyone.

  Use void functions for output purposes or to change the data member's
values. Use the exeptions for the error handling, instead the return
values.

  When you choose the book, look for a lot of examples (simple to
middle difficalty); the working examples on the disket wouldn't
be amiss too.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading
Technical Details
Message-ID: <6mop95$2sb$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6mnh5e$ras$0@208.136.119.106>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,5a724c20852aa9b1
X-Google-Attributes: gid10d4ba,public
From: amark@luckynet.co.il
Subject: Re: Understanding classes
Date: 1998/06/23
Message-ID: <6mop95$2sb$1@nnrp1.dejanews.com>
X-Deja-AN: 365351458
References: <6mnh5e$ras$0@208.136.119.106>
X-Http-User-Agent: Mozilla/4.04 [en] (Win95; I ;Nav)
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Tue Jun 23 17:39:49 1998 GMT
Newsgroups: att.lang.c++