1.

Class with main() function can be inherited.(a) True(b) FalseThe question was asked in class test.This intriguing question comes from Classes in division OOPs Concept & Features of Object Oriented Programming

Answer»

Correct option is (a) True

Easy explanation - The CLASS containing main function can be INHERITED and HENCE the PROGRAM can be executed using the derived class names also in java.



Discussion

No Comment Found

Related InterviewSolutions