English

A class ______ (can/cannot) have multiple methods.

Advertisements
Advertisements

Question

A class ______ (can/cannot) have multiple methods.

Fill in the Blanks
Advertisements

Solution

A class can have multiple methods.

Explanation:

A class can have multiple methods. This concept is standard practice in Java programming, allowing a single class to perform various distinct tasks (for example, a Calculator class can have separate methods for add(), subtract(), and multiply()).

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: User-Defined Methods - Exercises [Page 91]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 2. (vii) | Page 91
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×