hello there, I think you need to read your code, pace yourself, don't speed
read like I do most just so that I can finish the lessons :(

now your constructor must be
public Person (String aName,String fAge)
{
this.name=aName;
this.age=aAge;
}

and object instance like

Person DavidBeckam = new Person("David", "Beckam");

good luck
Lefu



On Tue, Apr 20, 2010 at 5:51 PM, Kobweb Admin <[email protected]> wrote:

> Hi I would just like to know how to pass data types within a class.
> For example
>
>
>  The program however must use the two instance variables to take the
> name and age of two people usiing only those instance variables.
>
> public class Person
>
> {
>  private String name;
> private int age;
>
> public Person (String aName,String fAge)
> {
> this.name=aName;
> this.age=aAge;
> }
>
>  }
>
> --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]<javaprogrammingwithpassion%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to