Results 1 to 2 of 2
  1. #1
    Pinky Punch is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default How To Connet Between Two Classes

    Hello!!
    I Have A Question
    I Feel It is Little Stupid :)
    But I wanna To Know It

    I wanna to know howa to connect between two classes
    I have 3 examples Iwanna To know How to do it please :(

    First example :

    I Have Class Student and Class Courses

    And the class Course need some variables of class Student ,How Can I Do that ???!!!



    Second Example :
    Also If i wanna to make a third class its name is grade class that connect between the course and student classes In other Words I wanna to make an object of class student and courses in the grade class But i wanna This object to be refrence for the both classes not A new one bcz I will Add values to both classes through that class



    Third Example:
    Last thing If i make class(Student ) and i want to make an array of that class at onther class(Department) What i should do ???

    HOpe U Understand me
    Im waiting for Ur Help
    THnx In Advance

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

Similar Threads

  1. How To Connet Between Two Classes
    By Pinky Punch in forum New To Java
    Replies: 4
    Last Post: 04-04-2011, 10:19 PM
  2. A little help with classes.
    By ThrashingBoy in forum New To Java
    Replies: 8
    Last Post: 06-10-2010, 09:52 AM
  3. Help with classes
    By gnarly hogie in forum New To Java
    Replies: 14
    Last Post: 10-10-2008, 02:29 PM
  4. Using a JAR from other classes
    By Joe2003 in forum Advanced Java
    Replies: 1
    Last Post: 01-02-2008, 07:08 PM
  5. Replies: 0
    Last Post: 12-18-2007, 06:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •