Select the correct option to test your answer:
More Computer Questions
What will be the output for the below code? class A{ public void printValue(){ System.out.println("A"); } } class B extends A{ public void printValue(){ System.out.println("B"); } } public class Test{ public static void main(String... args){ A b = new B(); newValue(b); } public static void newValue(A a){ if(a instanceof B){ ((B)a).printValue(); } } }
What will be the Correct statement of the following C# code? public class maths { public int x; public virtual void a() { } } public class subject : maths { new public void a() { } }
Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
What will be the output of the following R code? > f <- function() { + ## This is an empty function + } > f()
Which of these is not a fundamental features of OOP?