CSE 100 Study Guide - Final Guide: Linear Search, Html Element, Empty Set
Document Summary
protected data types, as other programs can"t manipulate them because external programs don"t know what in the world those abstract data types are. Class files: class files will be a unique file separate from the main code. Inside class files you have member data variables and member functions: these class files will create new custom data types that can be used within your code. // file rectangle. h -- rectangle class specification file. // rectangle class declaration class rectangle private: double length; double width; public: bool setlength(double); bool setwidth(double); double getlength(); double getwidth(); double getarea(); Implementation file: here is where you would write the function definitions for the member functions. // file rectangle. cpp -- rectangle class function implementation file. // if the argument passed to the setlength function is zero or * // greater, it is copied into the member variable length and true * If the argument is negative, the value of length *