ICSE Class 10 Computer Applications
Question 10 of 30
Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 15
Back to all questionsYellow
Reason — In Java, a constructor must have the same name as the class. It initializes an object when it is created. Since the class name is Yellow, the constructor's name must be exactly Yellow, matching the class name including capitalization.