Can Abstract Class Have Main Function Defined Inside It #392
Can abstract class have main() function defined inside it?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Classes - Object Oriented Programming MCQ: Abstract Class - Quiz No.1.
Can abstract class have main() function defined inside it?
Yes, depending on return type of main()
Yes, always
No, main must not be defined inside abstract class
No, because main() is not abstract function