?? gradstudent.java
字號:
//********************************************************************
// GradStudent.java Author: Lewis/Loftus
//
// Represents a graduate student with financial support. Used to
// demonstrate inheritance.
//********************************************************************
public class GradStudent extends Student
{
private String source;
private double rate;
//-----------------------------------------------------------------
// Sets up the gradate student using the specified information.
//-----------------------------------------------------------------
public GradStudent (String studentName, int courses,
String support, double payRate)
{
super (studentName, courses);
source = support;
rate = payRate;
}
//-----------------------------------------------------------------
// Returns a description of this graduate student as a string.
//-----------------------------------------------------------------
public String toString()
{
String result = super.toString();
result += "\nSupport source: " + source + "\n";
result += "Hourly pay rate: " + rate;
return result;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -