Re: [netrexx-course] Lesson 1?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [netrexx-course] Lesson 1?

Dave Ross-2
See explanations embedded below.
Dave

----------

> From: J. Pedone <[hidden email]>
> To: [hidden email]
> Subject: Re: [netrexx-course]    Lesson 1?
> Date: Sunday, August 23, 1998 12:37 PM
>
> On Sun, 23 Aug 98 15:58:34 -0400, Tom Stevic wrote:
>
> > on 08/22/98 dIon Gillard/Multitask Consulting/AU<[hidden email]>
> >stated:
> >
> >
> >
> >>| A question.
> >>| >
> >>| > In the HelloApplet, line 7 says:
> >>| >  method paint(g=Graphics)
> >>| >
> >>| > What exactly does the statement g=Graphics do?
> >>| >
> >>| > _________________________________________________
> >
> >>What was the question??
> >
> >
> >Should I read that line to say:
> >
> >define a method called paint that gets a value that is passed to it that
> >we will call 'g' and that value is of type Graphics?
> >
>
> It seems to work that way but when written as it is isn't "g" a
> required parameter since no default is given ?

A required parameter means that the method/function requires that
a valid value, in this case a graphics object, be passed to it because
no default graphics object is available. In the case of method paint(g)
it wouldn't make sense to draw/paint some default object to the
display window.

> In this case paint(g) doesn't seem to need or want any arguments.
> Anyone know why ?

g is the argument being passed to paint(g) and since there isn't a
default defined then an argument IS required to be sent when
calling the method.

>
> j.
>
>
>
> [hidden email]
> http://www.flash.net/~jpedone
>
>
> ____________________________________________________________
> List Site: http://www.findmail.com/list/netrexx-course/ 
> To unsubscribe, send to [hidden email]
>
> FREE group e-mail lists at http://www.findmail.com

____________________________________________________________
List Site: http://www.findmail.com/list/netrexx-course/ 
To unsubscribe, send to [hidden email]

FREE group e-mail lists at http://www.findmail.com

Reply | Threaded
Open this post in threaded view
|

Re: [netrexx-course] Lesson 1?

Dave Ross-2
See explanations embedded below.
Dave

----------

> From: J. Pedone <[hidden email]>
> To: [hidden email]
> Subject: Re: [netrexx-course]    Lesson 1?
> Date: Sunday, August 23, 1998 12:37 PM
>
> On Sun, 23 Aug 98 15:58:34 -0400, Tom Stevic wrote:
>
> > on 08/22/98 dIon Gillard/Multitask Consulting/AU<[hidden email]>
> >stated:
> >
> >
> >
> >>| A question.
> >>| >
> >>| > In the HelloApplet, line 7 says:
> >>| >  method paint(g=Graphics)
> >>| >
> >>| > What exactly does the statement g=Graphics do?
> >>| >
> >>| > _________________________________________________
> >
> >>What was the question??
> >
> >
> >Should I read that line to say:
> >
> >define a method called paint that gets a value that is passed to it that
> >we will call 'g' and that value is of type Graphics?
> >
>
> It seems to work that way but when written as it is isn't "g" a
> required parameter since no default is given ?

A required parameter means that the method/function requires that
a valid value, in this case a graphics object, be passed to it because
no default graphics object is available. In the case of method paint(g)
it wouldn't make sense to draw/paint some default object to the
display window.

> In this case paint(g) doesn't seem to need or want any arguments.
> Anyone know why ?

g is the argument being passed to paint(g) and since there isn't a
default defined then an argument IS required to be sent when
calling the method.

>
> j.
>
>
>
> [hidden email]
> http://www.flash.net/~jpedone
>
>
> ____________________________________________________________
> List Site: http://www.findmail.com/list/netrexx-course/ 
> To unsubscribe, send to [hidden email]
>
> FREE group e-mail lists at http://www.findmail.com


____________________________________________________________
List Site: http://www.findmail.com/list/netrexx-course/ 
To unsubscribe, send to [hidden email]

FREE group e-mail lists at http://www.findmail.com