Esempio n. 1
0
        // Init	- initialize the student object
        public void     Init(string sName, int nID)
        {
            this.sName = sName;
            this.nID   = nID;

            courseInstance = null;
        }
Esempio n. 2
0
        CourseInstance _courseInstance; // Convention is optional.

        // Init - Initialize the student object.
        public void Init(string name, int id)
        {
            this._name = name; // With the naming convention, _name,
            this._id   = id;   // 'this' is no longer needed.

            _courseInstance = null;
        }
Esempio n. 3
0
    CourseInstance _courseInstance;  // Convention is optional.

    // Init - Initialize the student object.
    public void Init(string name, int id)
    {
      this._name = name; // With the naming convention, _name,
      this._id = id;     // 'this' is no longer needed.

      _courseInstance = null;
    }
Esempio n. 4
0
 // Enroll - Enroll the current student in a course.
 public void Enroll(string courseID)
 {
     _courseInstance = new CourseInstance();
     _courseInstance.Init(this, courseID);
 }
Esempio n. 5
0
 // Enroll - Enroll the current student in a course.
 public void Enroll(string courseID)
 {
   _courseInstance = new CourseInstance();
   _courseInstance.Init(this, courseID);
 }
Esempio n. 6
0
 // Enroll	- enroll the current student in a course
 public void     Enroll(string sCourseID)
 {
     courseInstance = new CourseInstance();
     courseInstance.Init(this, sCourseID);
 }
Esempio n. 7
0
 // Enroll -- Enroll the current student in a course.
 public void Enroll(string courseID)
 {
     _courseInstance = new CourseInstance();
     _courseInstance.Init(this, courseID); // The explicit reference.
 }
Esempio n. 8
0
 // Init -- Initialize the student object.
 public void Init(string name, int id)
 {
     this._name      = name;
     this._id        = id;
     _courseInstance = null;
 }
Esempio n. 9
0
 // Init -- Initialize the student object.
 public void Init(string name, int id)
 {
     this._name = name;
     this._id = id;
     _courseInstance = null;
 }
Esempio n. 10
0
 // Enroll -- Enroll the current student in a course.
 public void Enroll(string courseID)
 {
     _courseInstance = new CourseInstance();
     _courseInstance.Init(this, courseID);    // Here’s the explicit reference.
 }