C++ Tip for Accessing Derived Class Functions Indirectly

2020, base class, c++, coding, computer science, Computers, Computing, derived class, functions, inheritance, pointers, static cast, tables

So, if you are a newb coder like me, and you are studying inheritance, and it all just seems to come crashing down when you can’t seem to access a derived class’s function, take heart! There’s always a way. Just passing along info. gleaned from the interwebs that was used in my team’s code that I found VERY helpful! See image above for more.

Structs and Classes!

2018, Art, artist, arts & crafts, Cartoon, computer science, Computers, Computing, drawing, drawings, Karla Fant, Kristin Bell, magnet, Nerd, pass by reference, pass by value, Portland State University, PSU, structs and classes


So, I’ve been taking some computer science classes. My teacher is just great, and she is very funny. In class she’ll say things like “NEVER!!! Pass a class or struct by value! NEVER!” Also, she’ll talk about how her stuff on the bottom of her stairs compares to a sorting algorithm and stuff. Anyway, it is total nerd joke stuff, and I love it! hahaha. So one day I got the idea to make a drawing of her with something she says. Then I turned the drawing into some bookmarks and magnets. I did give some to her, and she laughed. LOL. Plus the TAs seem to like them too. This photo is of one of the magnets. ;)