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
Computer Science,
7 months ago
Hindi,
7 months ago
English,
7 months ago
Geography,
1 year ago
Math,
1 year ago
Business Studies,
1 year ago
Political Science,
1 year ago