Question: What's the functional difference between initialising an object through subtyping vs. declaring an object directly to the subclass? e.g. class A {} class B extends
What's the functional difference between initialising an object through subtyping vs. declaring an object directly to the subclass?
e.g.
class A {}
class B extends A {}
...
A obj = new B();
B obj = new B();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
