Described local class? why can it be useful?, C/C++ Programming

It is a class defined in the scope of a function _ any function, whether a member functions or a free function. For instance:

// Example : Local class

//

int f()

{

class LocalClass

{

// ...

};

// ...

};

Such as nested classes, local classes may be a useful tool for managing code dependencies.

Posted Date: 3/16/2013 3:02:41 AM | Location : United States







Related Discussions:- Described local class? why can it be useful?, Assignment Help, Ask Question on Described local class? why can it be useful?, Get Answer, Expert's Help, Described local class? why can it be useful? Discussions

Write discussion on Described local class? why can it be useful?
Your posts are moderated
Related Questions

Declaration of Variables: Variables are declared as follows: int a; float b;   Assigning value to variables: int a = 100; Declaring and assigning is called ini

A: It let you to provide an intuitive interface to users of your class, as well as makes it possible for templates to equally work well with classes and built-in/intrinsic types.

In this project, you will write a software for the Registrar's office of a university called YouOIT to maintain information about students and courses at the university. The reg

answer for tcs is working question


Imagine that the server program is a setuid program owned by the root, then after you penetrate the program with a shell running, you become the ROOT and you can remove the whole f

Define Functions with arguments and return values? The earlier category functions receive values from the calling function through arguments but do not send back any value rath

This program requires the use of a windows box, no console applications are allowed. Prepare for Christmas now.  Each year, Reindeer Gift Emporium publishes a Christmas price list

Explain the  bit fields portable or not? - No, Bit fields aren't portable. - As Bit fields can't span machine words and number of bits in a machine word is different on diff