English

Define Return data type. - Computer Applications

Advertisements
Advertisements

Question

Define Return data type.

Definition

Solution

  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
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 337]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q VI. 14. (a) | Page 337
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×