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

            courseInstance = null;
        }
Exemplo 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;
        }
Exemplo 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;
    }
Exemplo n.º 4
0
 // Enroll - Enroll the current student in a course.
 public void Enroll(string courseID)
 {
     _courseInstance = new CourseInstance();
     _courseInstance.Init(this, courseID);
 }
Exemplo n.º 5
0
 // Enroll - Enroll the current student in a course.
 public void Enroll(string courseID)
 {
   _courseInstance = new CourseInstance();
   _courseInstance.Init(this, courseID);
 }
Exemplo n.º 6
0
 // Enroll	- enroll the current student in a course
 public void     Enroll(string sCourseID)
 {
     courseInstance = new CourseInstance();
     courseInstance.Init(this, sCourseID);
 }
Exemplo 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.
 }
Exemplo n.º 8
0
 // Init -- Initialize the student object.
 public void Init(string name, int id)
 {
     this._name      = name;
     this._id        = id;
     _courseInstance = null;
 }
Exemplo n.º 9
0
 // Init -- Initialize the student object.
 public void Init(string name, int id)
 {
     this._name = name;
     this._id = id;
     _courseInstance = null;
 }
Exemplo 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.
 }