Computer Science, asked by TbiaSamishta, 1 year ago

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 Secondman
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