📄 anothertail.java
字号:
import java.io.*;
import java.util.*;
/*another tail*/
public class anotherTail extends abs
{
String currentDate=(new java.util.Date()).toString();/*get the system time*/
abs theAbs;
public anotherTail(abs theAbs)
{
this.theAbs=theAbs;
}/*another way to show something*/
public void display()
{
theAbs.display();
System.out.println("-----------------------------------------------\n");
System.out.println("Total "+theAbs.getFinalCost());
System.out.println("the date is"+currentDate+"\n");
System.out.println("Thanks.\n");
}
/*here it does not cal money so,just return money that has been calculated*/
public double getFinalCost()
{
return theAbs.getFinalCost();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -