0:00
Hi there.
00:01
So for this problem, we are given three class.
00:04
So the first one is class animal.
00:11
Okay.
00:13
Then we're given some constructors and methods that are not shown.
00:19
Own then we define the class beard that is tense animal okay so this is a subclass of animal then we will have class cardinal that is tense beer so it it is a subclass of beard.
00:53
Okay? now, with that said, we define the following.
00:57
Cardinal red, that equals to a new cardinal.
01:08
Then we have animal, tweedy, that is a new bird.
01:20
And then we will have a bird chirping that is equal to new cardinal.
01:35
Okay, so we need to determine which of the following object declarations we compile without error.
01:46
So then to determine which object declaration will compile without error we need to examine the relationships between the classes and how java handles inheritance...