मराठी

Differentiate between pure and impure methods. - Computer Applications

Advertisements
Advertisements

प्रश्न

Differentiate between pure and impure methods. 

फरक स्पष्ट करा

उत्तर

S. No. Pure method Impure method
1. A method that returns a value to its caller module is known as a "pure method." An impure method may not return any value. It simply modifies the state of an object during a call.
2. This method, often known as the "accessor method," does not modify an object's properties. An Impure method, often known as a Mutator, modifies the state of an object.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×