Inheritance Part VI, Constexpr, Inline

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



Duration: 48:08
237 views
2


Today we talked about three things while getting a new homework assignment to recognize shapes.

1) Virtual destructors. Needed. Sorry for not mentioning it earlier
2) Constexpr, like const, but ensures the value can be determined at compile time. Const values can be set at runtime, so constexpr is more strict.
3) Inline, and why it doesn't mean what you think it means, and what it's actually used for (weak linkage)







Tags:
csci 41
inline
constexpr
virtual destructors