Home / MCQ Bank / Computer
Computer Inheritance In C Plus Plus

Which is the correct syntax of declaring a virtual function?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • virtual int func()

Related Computer Questions

What is the minimal Hamming distance between any two correct codewords? What is the total running time of the binary GCD algorithm? What will be the output of the following Java snippet, if compiled and executed with command line argument "java abc 1 2 3"? public class abc { static public void main(String [] xyz) { for(int n=1;n<xyz.length; n++) { System.out.println(xyz[n]+""); } } } A relationship is which of the following? Determine output: #include<stdio.h> #define clrscr() 100 void main() { clrscr(); printf("%dn", clrscr()); }