- 4
- 0
- 约2.45千字
- 约 11页
- 2017-03-08 发布于天津
- 举报
theobjectclass(ppt)
We want a class which to represent a Car. This class will need all of the attributes of a standard Vehicle plus some more.. Inherited Fields are Private Consider deposit method of CheckingAccountpublic void deposit double amount transactionCount++;? ?// now add amount to balance? ?... Cant just add amount to balance balance is a private field of the superclass Subclass must use public interface and all data of Vehicle are automaticaly inherited by class Car Ok to call deposit, getBalance on SavingsAccount object Extended class superclass, extending class subclass Inheritanc
您可能关注的文档
- slide5-8securitythreatsinthee-commerceenvironment.ppt
- slidesfromthenov-2015meetingon3dprinting.ppt
- smt制程–前段.ppt
- softwaretechnologiesoverview-svatitech.doc
- softwareprozabezpeeníjakostipodlenoremiso.doc
- sourceoffunding-graduatestudentsassociation,knust.ppt
- specialaddress-assocham.ppt
- sourcesoferrorsinmedicalresearch-1.ppt
- speditionsauftrag-interfracht.ch.doc
- standardrooms-1atravel.doc
原创力文档

文档评论(0)