thanks for the help. I am trying to get this stuff straight..... constructors 
and functions.
   the class is going over Graphics now. Point (x, y) to make lines......... 
and all those other classes:  make a triangle, lines, etc.

"Brett W. McCoy" <[EMAIL PROTECTED]> wrote:
          On 2/27/07, Robert Ryan <[EMAIL PROTECTED]> wrote:

> word 'number' is exactly the point.........I am wondering about the diff 
> between a constructor and a function. a constructor is the same name as the 
> class. and a function is a diff name from the class of which a program can 
> have several, one being Number()

A constructor *is* a function call, one that returns an object of the
class the constructor is for. I'm still not sure what you are getting
at... if you want to declare and define a function called Number(),
there is nothing to stop you, as long as you don't clash with any
other declarations of the same function (such as might included in a
header).

There is no Number class in standard C++.

-- Brett
----------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi


         

  
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

[Non-text portions of this message have been removed]

Reply via email to