📄 book.java
字号:
//********************************************************************
// Book.java Author: Lewis/Loftus
//
// Represents a book. Used as the parent of a derived class to
// demonstrate inheritance.
//********************************************************************
public class Book
{
protected int pages = 1500;
//----------------------------------------------------------------
// Prints a message about the pages of this book.
//----------------------------------------------------------------
public void pageMessage ()
{
System.out.println ("Number of pages: " + pages);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -