問題描述:編寫一個(gè)JAVA程序,用面向?qū)ο笤O(shè)計(jì)的方法編寫一個(gè)電話卡的類。包括卡號、密碼、余額、撥入號碼等 b)基本要求:類的屬性有卡號、密碼、余額、撥入號碼,電話卡的常用操作可以用連接電話方法、返回余額方法與通電話方法來實(shí)現(xiàn)。 c)方法功能描述: 構(gòu)造方法(PhoneCard(卡號,密碼,余額,撥入號碼))可以完成屬性值初始化賦值,并判斷余額,余額為負(fù)就退出系統(tǒng),請?jiān)跇?gòu)造方法中將初始時(shí)的連接置為false即表示沒有連接。 卡號long cardNumber 密碼private int password,余額double balance,撥入號碼string connectNumber boolean connected(一個(gè)布爾類型變量表示電話卡連接狀態(tài),初始時(shí)默認(rèn)沒有連接,值為false,當(dāng)調(diào)用連接電話方法()后,在判斷卡號和密碼相匹配后值置為true) 連接電話方法(performConnection(卡號,密碼))可以完成檢查卡號和密碼,它是只有在卡號和密碼相匹配時(shí)才連接 返回余額方法(getBalance())得到電話卡的余額 通電話方法(performDial())是模擬通過過程中,余額會不斷減少,每調(diào)用此方法,電話卡的余額減少0。5元,打一次電話調(diào)用一次
上傳時(shí)間: 2014-01-20
上傳用戶:1109003457
中序轉(zhuǎn)后序, 適用于公式運(yùn)算及相關(guān)轉(zhuǎn)換 如A=B+C
上傳時(shí)間: 2013-11-27
上傳用戶:皇族傳媒
畢業(yè)設(shè)計(jì)關(guān)系b/s系統(tǒng) 畢業(yè)設(shè)計(jì)管理工作 畢業(yè)設(shè)計(jì)管理數(shù)據(jù)
標(biāo)簽: 畢業(yè)設(shè)計(jì) 數(shù)據(jù) 管理工作
上傳時(shí)間: 2013-12-06
上傳用戶:1101055045
design LP,HP,B S digital Butterworth and Chebyshev filter. All array has been specified internally,so user only need to input f1,f2,f3,f4,fs(in hz), alpha1,alpha2(in db) and iband (to specify the type of to design). This program output hk(z)=bk(z)/ak(z),k=1,2,..., ksection and the freq.
標(biāo)簽: Butterworth internally Chebyshev specified
上傳時(shí)間: 2015-11-08
上傳用戶:253189838
JSP中文網(wǎng)新聞發(fā)布系統(tǒng)是由jsp中文網(wǎng)為了方便管理自己的相關(guān)技術(shù)文章而編寫的b/s模式的集新聞發(fā)布、管理與一體的新聞發(fā)布系統(tǒng)。
標(biāo)簽: JSP jsp 新聞發(fā)布系統(tǒng) 新聞
上傳時(shí)間: 2014-01-22
上傳用戶:13215175592
// 帶有列主元的高斯消元法 // 功能: 求解線性方程組 Ax = b // 參數(shù): A - 指向n*n系數(shù)矩陣的指針 // b - 常數(shù)向量的指針 // n - 方程組的維數(shù) // 返回值:0 - 如果成功。線性方程組的解保存在 b 中 // 1 - 求解失敗
上傳時(shí)間: 2013-12-18
上傳用戶:xcy122677
B-spline曲線是包含Bezier曲線的通用數(shù)學(xué)表示法。
上傳時(shí)間: 2015-11-22
上傳用戶:whenfly
About: hamsterdb is a database engine written in ANSI C. It supports a B+Tree index structure, uses memory mapped I/O (if available), supports cursors, and can create in-memory databases. Release focus: Major feature enhancements Changes: This release comes with many changes and new features. It can manage multiple databases in one file. A new flag (HAM_LOCK_EXCLUSIVE) places an exclusive lock on the file. hamsterdb was ported to Windows CE, and the Solution file for Visual Studio 2005 now supports builds for x64. Several minor bugs were fixed, performance was improved, and small API changes occurred. Pre-built libraries for Windows (32-bit and 64-bit) are available for download. Author: cruppstahl
標(biāo)簽: C. hamsterdb structure database
上傳時(shí)間: 2013-12-11
上傳用戶:LouieWu
文法如下: (1)S->aAcBe (2)A->b (3)A->Ab (4)B->d 關(guān)於lr0的語法分析
上傳時(shí)間: 2015-11-22
上傳用戶:thinode
用全選主元高斯消去法求解N復(fù)系數(shù)階線性方程組AX=B
上傳時(shí)間: 2015-11-25
上傳用戶:ggwz258
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1