what do you mean by pure and impure methods
Answers
Answered by
2
Explanation:
Pure function takes place in Call by Value. Impure function takes place in Call by Reference. In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope.
Hope this helps..
Answered by
3
Explanation:
Pure function takes place in Call by Value. Impure function takes place in Call by Reference. In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope Hope this helps..
Similar questions
English,
4 months ago
CBSE BOARD X,
4 months ago
Science,
9 months ago
Math,
1 year ago
Math,
1 year ago