Ask a Teacher



WHAT IS THE DIFFERANCE BETWEEN PURE & IMPURE METHODS?

A pure function is one function that has no side effects or output and doesn't depend on any state beyond its local state's means it can be replaced by any other pure function which returns same result given the same inputs.This property is often referred as referential transparency.


comments powered by Disqus