This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi guys! There's this thing that bugs me everytime I see people do it and don't get me wrong it's useful but I just don't really understand it. So when you make a class that inherits from a parent class you can declare an instance of the child class and that instance also classifies as the type of its parent class. Or at least this is how I understand it. I also think I remember people accessing or referencing variables and methods from a child class in a parent class. Is that a thing and if so then how does it work???
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cpp_questio...