TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: John Beckett
from: Geo
date: 2004-11-09 22:26:08
subject: Re: C++

From: "Geo" 

"John Beckett"  wrote
in message news:4190848a.1584097{at}216.144.1.254...

> int i;
> Date d;
>
> i is a "variable" in that it contains data only. Operations
performed on i
> (like addition)  are provided by the compiler and their meaning can't be
> changed.
>
> d is also a variable but it has user-defined functions, aka methods. A
> self-contained thing with data and methods is known as an object because
> you can (probably) manipulate it without knowledge of its inner workings.

Great, but I can manipulate int i without knowledge of it's inner workings
either, I basically treat both the same.

> It could be argued that there is not much point in insisting on calling i
> a variable and d an object.

So is a variable just a simple object?

Geo.

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 396/45 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.