Tagged Questions
0
votes
2answers
374 views
Object inheritance and method parameters/return types - Please check my logic
I'm preparing for a test and doing practice questions, this one in particular I am unsure I did correctly:
We are given a very simple UML diagram to demonstrate inheritance: I hope this is clear, it ...
1
vote
0answers
104 views
Inheritance and constricted referencing
Let's say I have BaseA and BaseB classes. BaseB can have to several references of BaseA instances. Now, we have two other classes, DerivedA and DerivedB that respectively inherit from BaseA and BaseB.
...