Confused about is-a relationship (static and dynamic types) [Answered]
What's with the syntax on the second line? And why would we ever use the syntax on the second line if it limits us to using only the members in DerivedClass? Like is
The same as
C#
// Testing
BaseClass newObject = new BaseClass();
BaseClass newObjectB = new DerivedClass(209.21312f);C#
BaseClass newObjectB = new DerivedClass(209.21312f);C#
BaseClass newObjectB = new BaseClass(209.21312f)