“mobile”/ banners
Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

What is Local Classes?

Discussion in 'Programming and Scripts' started by dealsforums, Aug 24, 2009.

  1. dealsforums

    dealsforums Affiliate affiliate

    he good thing about C++ is that no matter how long you've been using it..........
  2. newbidder
  3. gkumar

    gkumar Affiliate affiliate

    A local class is declared locally within a block of Java code, rather than as a member of a class. Typically, a local class is defined within a method, but it can also be defined within a static initializer or instance initializer of a class. Because all blocks of Java code appear within class definitions, all local classes are nested within containing classes. For this reason, local classes share many of the features of member classes. It is usually more appropriate, however, to think of them as an entirely separate kind of inner class. A local class has approximately the same relationship to a member class as a local variable has to an instance variable of a class.

Top Resources