- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 51字
- 2021-06-24 14:58:06
Power-related methods
Two methods are required to manage power—powerOn() and powerOff():
// Method to turn power on
public void powerOn() {
poweredOn = true;
}
// Method to turn power off
public void powerOff() {
poweredOn = false;
}
The preceding methods serves a toggles for the poweredOn variable.
推薦閱讀
- Hands-On Data Structures and Algorithms with Rust
- 大數(shù)據(jù)可視化
- 工業(yè)大數(shù)據(jù)分析算法實(shí)戰(zhàn)
- Neural Network Programming with TensorFlow
- SQL Server 2012實(shí)施與管理實(shí)戰(zhàn)指南
- 活用數(shù)據(jù):驅(qū)動(dòng)業(yè)務(wù)的數(shù)據(jù)分析實(shí)戰(zhàn)
- 數(shù)據(jù)庫(kù)查詢(xún)優(yōu)化器的藝術(shù):原理解析與SQL性能優(yōu)化
- 云計(jì)算
- 信息融合中估計(jì)算法的性能評(píng)估
- 數(shù)據(jù)中臺(tái)實(shí)戰(zhàn):手把手教你搭建數(shù)據(jù)中臺(tái)
- Artificial Intelligence for Big Data
- 一類(lèi)智能優(yōu)化算法的改進(jìn)及應(yīng)用研究
- ORACLE 11g權(quán)威指南
- 數(shù)據(jù)分析實(shí)踐:專(zhuān)業(yè)知識(shí)和職場(chǎng)技巧
- 工業(yè)大數(shù)據(jù)分析實(shí)踐