C++ Member Functions

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=pumXLpKPYfs



Duration: 1:17:04
96 views
2


Today we learned three important things:


1) How do use default parameters on functions, and why this makes writing constructors easy (so you don't need to make multiple constructors in most cases).


2) How to pass objects (i.e. variables of a class type) to a function


3) How to add a function to a class. Classes can be thought of as A) Data and B) Things that Data can do, bundled together in way that is nice and organized.







Tags:
csci 40
default parameters
c++
member functions
objects