EECS 183 Lecture 16: EECS 183 Lectures 15 and 16 W17

112 views2 pages
EECS 183 Full Course Notes
1
EECS 183 Full Course Notes
Verified Note
1 document

Document Summary

Four projects know teammates by march 26. Instance is single and unique unit of the class. String is class; name is a string (it is an instance of the string class) Does not make sense to do cin. open() You can drive a car without knowing how the engine works. Professors can ask for my gpa without being able to change my name. Ug, graduate all have a get_gpa () function. We can just say that all students have a get_gpa() function. This is called inheritance (no need to know for this class) Classes is a way to group heterogeneous data. We can have one class (student) and multiple instances (kevin_lee, etc. ) Private members are only accessible from member functions. Public members, other users can modify the values. Constructor is a member function that has the same name as the class and no return type. It is what creates the instance of the class.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents