Question: this question is about polymorphism. Select one or more: Vehicle v=new Vehicle(); v.accellerate(); is an example of polymorphism Polymorphism doesn't require inheritance Polymorphism allows writing
this question is about polymorphism. Select one or more: Vehicle v=new Vehicle(); v.accellerate(); is an example of polymorphism Polymorphism doesn't require inheritance Polymorphism allows writing code that works for different subtypes of a type To use polymorphism we only need the substitution principle Mammal v=new Dog(); v.move(); could be an example of polymorphism The substitution principle allows an object to have a super type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
