0

Does c++ allow user to define nested class and nested function and nested class as in Pascal and java?

Nested in c++

3rd Jan 2022, 3:17 AM
Oliver Pasaribu
Oliver Pasaribu - avatar
5 Respostas
0
Yes. Ddefinition of function and class inside another class. As in Java, it allows nested class ddefinition not function call stack or using object (reference) of another class.
3rd Jan 2022, 7:44 AM
Oliver Pasaribu
Oliver Pasaribu - avatar
0
If it is clear now that c++ doesn't support nested class ddefinition, I think sololearn must revise their practoce material in c++ concerning with it.
3rd Jan 2022, 7:46 AM
Oliver Pasaribu
Oliver Pasaribu - avatar
0
Community Code Challenge using c++.
3rd Jan 2022, 9:41 AM
Oliver Pasaribu
Oliver Pasaribu - avatar