Previous Lecture | lect02 | Next Lecture |
Code from lecture
https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect02
Topics
- Intro to Object Oriented Programming
- Defining classes and declaring objects
- Encapsulation with access specifiers: private, public
- Different ways of initializing objects and when to use each:
- Default constructor
- Parametrized constructor
- Parameterized constructor with default value
- Operator overloading
- what is operator overloading?
- why/when would we need to overload operators?
- how to overload operators in C++ ?