/* Program: Run_Car Author: Lynne L. Grewe Date: Sept. 22, 1998 Updates: Sept. 23, L. Grewe, Changed Comments created .... ....... Sept 28, D. Sullivan, ............ Purpose: A class you can use to represent a generic Car. Call: N/A */ /*The Car class represents a generic Car contains variables about Engine_Size, Gas_Tank */ class Car { float Engine_Size; float Gas_Tank; //Sets Gas_Tank to 100% void Fill_Tank() { Gas_Tank = 100.0; } //Allows user to specify new Engine Size void Change_Engine(float size) { Engine_Size = size; } } |