# Classes in FreeFEM++

**URL:** <https://community.freefem.org/t/classes-in-freefem/3464>\
**Category:** General Discussion\
**Created:** [September 3, 2024, 5:34pm UTC](https://community.freefem.org/t/classes-in-freefem/3464 "2024-09-03T17:34:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariamiMamgo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/mariamimamgo/32/2641_2.png) [@MariamiMamgo](https://community.freefem.org/u/MariamiMamgo)\
**Post date:** [September 3, 2024, 5:34pm UTC](https://community.freefem.org/t/classes-in-freefem/3464/1 "2024-09-03T17:34:03Z")

</div>

Hello, I am new to FreeFEM++ and would like to organize my code using object-oriented principles by defining classes. Is there a mechanism within FreeFEM++ that supports the implementation of classes, or are there alternative methods to achieve a similar structure in the code?

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [September 4, 2024, 12:59pm UTC](https://community.freefem.org/t/classes-in-freefem/3464/2 "2024-09-04T12:59:50Z")

</div>

No, freefem++ is a an object oriented language.

---

<div class="post-metadata">

**Author:** ![MariamiMamgo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/mariamimamgo/32/2641_2.png) [@MariamiMamgo](https://community.freefem.org/u/MariamiMamgo)\
**Post date:** [September 4, 2024, 5:33pm UTC](https://community.freefem.org/t/classes-in-freefem/3464/3 "2024-09-04T17:33:16Z")

</div>

I’m working with three types of objects, each with its own set of parameters. I want to automate their creation and use these objects in the meshing process. Any advice on how to best implement this in FreeFEM++ would be appreciated!

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [September 5, 2024, 8:34am UTC](https://community.freefem.org/t/classes-in-freefem/3464/4 "2024-09-05T08:34:30Z")

</div>

Please do not open multiple posts for the same issue.
