Skip to main contentSkip to footer

Computer Science 236 Class Practice

Practice (0 points)

Given the following classes:


 

// File:  Test1.h

class Test1 {

    private:
    	double  cost;

    public:

	___________   getCost  () ;void ____________  ( double c ) ;} // end class ________________

//  File:  Test1.cpp

    double  Test1::getCost  () {return  ___________; 
	}void ____________ setCost ( double c) {cost = ________________ ; 
	}

//  File:  Example2.h

_____________    Example2 {

    ___________:string  name;public:

       	String  getName  () ;void  setName (   ____________   n ) ;

	
	} // end class Example2

// File:  Example2.cppstring  Example2::getName  () {_____________  name; 
			
	}void  _____________::setName (   ____________   n ) {_______________ = n; 
		
	}

Print this web page, and fill in the blanks.