Class inside a Method ? Is it possible ?… Yes, Possible…

Hi Friends,
Here we are going to create a class inside a method, and , a class in a method is called Local Class.

In the following code, we have created a class “LocalClass” within “show()” method and then have a “displayVal()” Method inside LocalClass. Continue reading

Advertisements