Student needs a push!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mojo

    Student needs a push!

    Ok,
    I don't want to much help but I need a push. I am supposed to write a
    program with 3 classes:
    1. Controlling class
    2. Student class
    3. Grades class
    Controlling class instantiates a student ( I need 5 of these) object and
    gives it a name and studentID. Then I need to create a Grades object that
    goes with the student that holds 5 grades.
    So far I have the Controller creating the student and then in the student
    constructor I create the grades object. How do I talk to the grades object
    from the Controller?
    Any help would be greatly appreciated.


  • Joe

    #2
    Re: Student needs a push!

    In article <gxLbb.548353$H o3.95323@sccrns c03>, someone@microso ft.com
    says...[color=blue]
    > Ok,
    > I don't want to much help but I need a push. I am supposed to write a
    > program with 3 classes:
    > 1. Controlling class
    > 2. Student class
    > 3. Grades class
    > Controlling class instantiates a student ( I need 5 of these) object and
    > gives it a name and studentID. Then I need to create a Grades object that
    > goes with the student that holds 5 grades.
    > So far I have the Controller creating the student and then in the student
    > constructor I create the grades object. How do I talk to the grades object
    > from the Controller?
    > Any help would be greatly appreciated.
    >
    >
    >[/color]

    if the Grades object in Student is a private instance variable, just
    return it in a public method called getGrades().

    Comment

    Working...