Posts

Showing posts from February, 2022

Casting

Casting

Polymorphism

Polymorphism

Virtual Functions - Overriding inherited methods

Virtual Functions - Overriding inherited methods

Static keyword

Destructors

 The first thing you do is dynamically allocate memory for the class. Create a pointer—that pointer exists on the stack. By using the new keyword, we dynamically allocate memory, return the pointer address to the variable on the stack. This way, we can access the memory on the heap. Constructor Dynamically allocates memory for variables. (On the heap.) After class is used, it can be deleted. Without destructor, dynamically created variables remain on the heap.

Heap and Stack

Heap and stack Dynamically created objects are placed in the heap.

Access modifiers

Access modifiers: public, private, and protected

Inheritence

Inheritence How to prevent the default (empty) parent constructor from being called:

Classes -- Overloading constructors

Classes -- Overloading Constructors (See alternate overloading syntax below.) Alternate:

Classes and Constructors

Classes, constructors, and fully qualified names:

Pointers and Structs

Pointers

Just started the C++ Course

 So, here's the tentative plan: Re-start the C++ course while also doing the GitHub one as well!  C++ in the morning. Git in the evening. February 11 is when I started this journey. Let's see how this will progress.