this post was submitted on 21 Feb 2024
4 points (100.0% liked)
Processing IDE & Coding
41 readers
1 users here now
Processing is a Java based programming language designed to educate new and existing programmers with a focus on visuals & OOP.
A javascript version is also available, called P5.js @ /c/[email protected]
Guidelines
- Schoolwork
- Asking for help with homework is OK
- Asking for a complete solution to your homework is NOT OK
- Responding to a request with hints, suggestions, explanations, and pseudocode is OK
- Responding to a request for help with a complete solution is discouraged but OK
- Text, Images, GIFs, and Videos showing off your work is welcome! Show us what you've done!
- No self-promotion
Resources
- Official Website
- List of all functions (Reference)
- Tutorials
- Coding Train YouTube Channel: https://www.youtube.com/@TheCodingTrain
Code of Conduct
For now, code of conduct shall simply follow the official CoC from the Lemmy organization: Link
Some highlights:
- Remarks that violate the Lemmy standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.)
- Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If I understand correctly, I think what you are getting at is a class which contains the loaded model, and this class is passed into each instance of Person when it loads up.
On my phone and stuff, not intentionally vague but off the top of my head,
Have a PersonModel class which handles loading the model into memory and then the other Person class would have this PersonModel class as a dependency. When Person needs the Model, it would use the one declared in PersonModel
Thanks, so something like passing PersonModel in the constructor Person(PersonModel p) should work because it's passed by reference, right?
Yeah exactly