Consider this class definition


Consider this class definition: class quiz { public: quiz( ); int f( ); int g( ) const; private: double score; }; Which functions can carry out an assignment score=1.0; to the private member variable score? A. Both f and g can carry out the assignment. B. f can carry out the assignment, but not g. C. g can carry out the assignment, but not f. D. Neither f nor g can carry out the assignment.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Consider this class definition
Reference No:- TGS0127903

Expected delivery within 24 Hours