MCQ
Single Best Answer
Easy
QWhat method is automatically added when you're creating a runnable class instead of a class?
ID: #11007
Module 13: Classes
162 views
Question Info
#11007Q ID
EasyDifficulty
Module 13: ClassesTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
- A. Incorrect: A
newmethod is used to create an instance of the class and isn't automatically added to a runnable class. - B. Incorrect: A
staticmethod is used to work with data in a table and isn't automatically added to a runnable class. - C. Correct: A
mainmethod is automatically added to a runnable class. Therefore, you would add a runnable class instead of a class to your project. - D. Incorrect: A
finalizemethod finalizes the instance of the class. It isn't automatically added to a runnable class.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic