Which statement is correct? Function overriding
-
A
Is an example of run-time polymorphism
Correct answer
-
B
Programs are compiled to bytecode that runs on the Java Virtual Machine
-
C
Is a violation of the grammatical rules of the language
-
D
Converts assembly language into machine code
Correct answer
A. Is an example of run-time polymorphism
Explanation
Function overriding is an example of run-time polymorphism.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ