Home / MCQ Bank / Computer
Computer Concept Of Object Oriented Programs In Python

What is the main advantage of using polymorphism in object-oriented programming?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • It allows objects of different classes to be treated uniformly

Related Computer Questions

Consider the 3×3 matrix {{2,1,-3},{6,3,4},{-2,3,0}}. What is the sum of the elements of the maximum sum rectangle? Given below classes which of the following are the possible row entries in vtable of D2 class? class Base { public: virtual void function1() {}; virtual void function2() {}; }; class D1: public Base { public: virtual void function1() {}; }; class D2: public Base { public: virtual void function2() {}; }; How can you create a new file in Python if it doesn't exist? What will be the output of the following Java program? class A { int i; int j; A() { i = 1; j = 2; } } class Output { public static void main(String args[]) { A obj1 = new A(); A obj2 = new A(); System.out.print(obj1.equals(obj2)); } } Which of the following CSS3 property specifies where to navigate when using the arrow-down navigation key?