With which of the following options polymorphism cannot be achieved ?(a) Method overloading (b) Operator overloading(c) Data hiding (d) All of these
Answers
Answered by
2
"Option (c) Data hiding.
With Data hiding, the user cannot achieve polymorphism. Except that method overloading, operator overloading is used for achieving different types of Polymorphism. Method overloading can be used for static polymorphism and method overriding is used dynamic polymorphism.
Polymorphism during compilation time can be obtained by operator overloading and function overloading. Runtime polymorphism is achieved by function overriding.
"
Similar questions
Physics,
6 months ago
Science,
6 months ago
Geography,
1 year ago
Math,
1 year ago
Business Studies,
1 year ago
Political Science,
1 year ago