Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 13 Online
OpenStudy (anonymous):

tell me some class and method for car class in java!

OpenStudy (espex):

Setting up these is no different than examining the object you are trying to duplicate. For example, a car has an engine, thus a class car could have an inner class of engine, and a method for it could be startEngine() or killEngine(). Similarly a car has a gas tank, so a class gasTank might have methods to checkTankLevel() or fillTank()...etc.etc.

OpenStudy (anonymous):

thank u,very good.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!