Write about the local class and mention its use?
Answer / Vishal Sharma
A local class is a class declared inside another function or block. These classes have access to variables within their enclosing scope, making them useful for encapsulating related functionality and reducing complexity of larger programs. They can also help improve efficiency by minimizing name collisions with global or other local names.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain stack & heap objects?
There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?
Why struct is used in c++?
What are enumerations?
When to use Multiple Inheritance?
int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?
give me some class & objects examples?
What is a concrete class?
Explain about vectors in c ++?
How to write Multithreaded applications using C++?
2 Answers Honeywell, TCS, Wipro,
Can we use struct in c++?
What is data hiding c++?