मराठी

Define Return data type. - Computer Applications

Advertisements
Advertisements

प्रश्न

Define Return data type.

व्याख्या
Advertisements

उत्तर

  1. It is the data type that appears before the method name in the method header.
  2. It specifies the kind of result that a method will return to its caller.
  3. A method's return type must be specified as void if it returns nothing.
  4. A return statement needs to be included in the method body when a method is defined with a return type.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 5 User - Defined Methods
EXERCISES | Q VI. 14. (a) | पृष्ठ ३३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×