Button In A Button (Inheritance in C++) The subject of object-oriented programming has always sparked something within my imagination. You see the first novel I ever wrote, was in the science fiction genre and I used what I learned computer-wise in the private industry to fuel the computer advancements within the novel.
In C++, you can inherit a class object or your class object can take on the characteristics of another class object. Therefore, there is an “is-a” or a “has-a” relationship that is possible with each class object created. Picture this then: A button within a button, within a button, within a button, and so on…