I'm really confused about this, and for some reason, I don't seem to get it. Maybe I'm overthinking it or just plain idiot.
But anyway, here's a sample code:
AkitaDog balto = new Dog();
I really don't get want that means, at least not in a sense where I can explain it to someone else.
If you provide me with this code, then I understand:
AkitaDog balto = new AkitaDog();
But in the first code, is it basically saying you have an AkitaDog type named balto, but you're making a Dog object out of it?
What does this also mean in terms of the methods balto inherits from Dog?
Can someone please give some simple examples to help understand it?