This is an extremely common example of inheritance, and it's used all the time- not just as an interview question.
For example, say you have a class Animal that has some default behaviors (let's...
Type: Posts; User: KevinWorkman
This is an extremely common example of inheritance, and it's used all the time- not just as an interview question.
For example, say you have a class Animal that has some default behaviors (let's...
I highly suggest you write a small program that does exactly that, and see what happens. Then you can show us!