+ 1

How we can handle multiple objects in object oriented programming

17th Apr 2019, 5:31 PM
ahsam yousaf
ahsam yousaf - avatar
3 ответов
+ 5
A bit similar to how you manage data structures and variables in non-OO languages. Objects encapsulate properties and behaviour specified in the corresponding class.
4th May 2019, 11:49 PM
Sonic
Sonic - avatar
+ 4
You need to Construct them.. Something like ObjectName name = new Objectype(); But i dont know it in cpp, sry
17th Apr 2019, 11:24 PM
I‘m Sarah🌹
I‘m Sarah🌹 - avatar
+ 4
What do you mean by handling different objects? The all have their unique parameter not effected by each other as long as they aren't static If you wanna initialize them make a constructor for the class
18th Apr 2019, 3:34 AM
Shahil Ahmed
Shahil Ahmed - avatar