Home / MCQ Bank / Computer
Computer Inheritence

What would be the result if a class extends two interfaces and both have a method with same name and signature? Lets assume that the class is not implementing that method.

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Compile time error

Related Computer Questions

What is the value of the expression 7 * (4 - 2) / 2 in C#? What will be the output of the following C++ code? #include <iostream> using namespace std; class BaseClass { public: virtual void myFunction() { cout << "1"; } }; class DerivedClass1 : public BaseClass { public: void myFunction() { cout << "2"; } }; class DerivedClass2 : public DerivedClass1 { public: void myFunction() { cout << "3"; } }; int main() { BaseClass *p; BaseClass ob; DerivedClass1 derivedObject1; DerivedClass2 derivedObject2; p = &ob; p -> myFunction(); p = &derivedObject1; p -> myFunction(); p = &derivedObject2; p -> myFunction(); return 0; } What will be the ciphered text corresponding to plain text "example" if an affine cipher is used with key values as a=5, b=10? Which keyword is commonly used in Cucumber feature files to define a background? What will be the output of the following C code? #include <stdio.h> #include <time.h> int main () { double d; d = difftime (5,17); printf ("%.2f\n", d ); return 0; }