Q:

Can abstract class have main() function defined inside it?

0

Can abstract class have main() function defined inside it?


  1. Yes, depending on return type of main()
  2. Yes, always
  3. No, main must not be defined inside abstract class
  4. No, because main() is not abstract function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Yes, always

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If there is an abstract method in a class then, __... >>
<< Which among the following best describes abstract ...