C++ Member Functions
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=pumXLpKPYfs
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.
Other Videos By Bill Kerney
2021-10-21 | UE4 Inventory System, Modding Quake 1 |
2021-10-21 | Recursive Maze Solving |
2021-10-20 | Reading from a File into a Vector of a Class |
2021-10-20 | Framing Part II |
2021-10-19 | Intersection Testing |
2021-10-19 | Mergesort |
2021-10-18 | Scope Resolution Operator, Namespaces, Enum Classes |
2021-10-18 | Framing |
2021-10-16 | Fallacies: Appeal to Ignorance, Correlation is Causation |
2021-10-15 | The Society of Creative Anachronism |
2021-10-15 | C++ Member Functions |
2021-10-14 | Recursion Part I |
2021-10-14 | Linear Algebra for Games |
2021-10-14 | Level Design Flow |
2021-10-13 | Constructors and Destructors Part II |
2021-10-13 | Constructors and Destructors, Physics Simulation (Part 1) |
2021-10-13 | Red Herring, Non-Sequitur, Strawman, Ad Hominem, Tu Quoque |
2021-10-12 | Max Flow |
2021-10-12 | Markov Chaining (to generate Fake Alex Jones) |
2021-10-12 | Color, Story, Level Design |
2021-10-12 | Debugging; Pitch Documents; Time; Timelines to Make a Door |
Tags:
csci 40
default parameters
c++
member functions
objects