0

Can I use the same object to access all the functions in my class? or does each function need it's own object

23rd Jun 2019, 11:43 PM
Mythical Coding
Mythical Coding - avatar
2 Answers
+ 5
Normally, an object must be processed by multiple methods (functions.) But, that doesn't mean you can't have methods only meant for one special type of object. However, you better have a really awesome reason for it.
24th Jun 2019, 1:39 AM
John Wells
John Wells - avatar
+ 1
Only 1 object of class is needed to use the functions of that class. variable_Name.doSomthing();
24th Jun 2019, 12:13 AM
D_Stark
D_Stark - avatar