# Putting code into classes

**URL:** <https://discourse.processing.org/t/putting-code-into-classes/40474>\
**Category:** Coding Questions\
**Created:** [January 5, 2023, 8:26pm UTC](https://discourse.processing.org/t/putting-code-into-classes/40474 "2023-01-05T20:26:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [January 6, 2023, 1:13pm UTC](https://discourse.processing.org/t/putting-code-into-classes/40474/2 "2023-01-06T13:13:51Z")

</div>

Hi

> [@How to work with classes in Processing](https://discourse.processing.org/t/how-to-work-with-classes-in-processing/40395):
>
> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147) Hi processing community. I would like to ask you how you can work with classes I already learned a little bit how to work with classes and function: \</\> Text text = new Text(); public class Text{ int x; int y; int r; String text = “”; int variable; void add(String text, int x, int y, int r){ textSize(r); text(text, x,y); } public void date(int viriable, int x, int y, int r){ textSize(r); text(viriable, x,y…

---

_[View the full topic](https://discourse.processing.org/t/putting-code-into-classes/40474)._
