Question : Which two are benefits of polymorphism? A. Faster code at runtime B. More efficient code at runtime C. More dynamic code at runtime D. More flexible and reusable code E. Code that is protected from extension by other classes
1. int sum(int first, int second) { first + second; } 2. int sum(int first, second) { return first + second; } 3. Access Mostly Uused Products by 50000+ Subscribers 4. int sum(int first, int second) { return first + second; }
5. void sum (int first, int second) { return first + second; }
1. sc: class Object asc: class AnotherSampleClass 2. sc: class SampleClass asc: class AnotherSampleClass 3. Access Mostly Uused Products by 50000+ Subscribers 4. sc: class AnotherSampleClass asc: class AnotherSampleClass