Course - importjava.io.*; publicclassCourse cfw_

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*;  public class Course     private String courseName;  //object to store the                                 //course name     private String courseNo;    //object to store the                                 //course number     private int courseCredits;  //variable to store the                                 //course credits        //Default Constructor        //The object is initialized to the default values.         //Postcondition: courseName = ""; courseNo = "";        //               courseCredits = 0;     public Course()     {         courseName = "";         courseNo = "";         courseCredits = 0;     }        //Constructor        //The object is initialized according to the parameters.        //Postcondition: courseName = cName; courseNo = cNo;        //               courseCredits = credits;     public Course(String cName, String cNo, int credits) 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Page1 / 4

Course - importjava.io.*; publicclassCourse cfw_

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online