Set an object as input for a function
in
Programming Questions
•
4 months ago
If I had some code like this:
- MyClass myObject;
- class MyClass{
- MyClass(){}
- }
I'd like to make something like this:
- void draw(){
- workWith(myObject);
- }
- void workWith( /*What should I do here?*/ ){}
1