# Questions about function inside struct

**URL:** <https://discourse.julialang.org/t/questions-about-function-inside-struct/129669>\
**Category:** New to Julia\
**Tags:** struct\
**Created:** [June 5, 2025, 12:57pm UTC](https://discourse.julialang.org/t/questions-about-function-inside-struct/129669 "2025-06-05T12:57:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [June 5, 2025, 1:27pm UTC](https://discourse.julialang.org/t/questions-about-function-inside-struct/129669/4 "2025-06-05T13:27:55Z")

</div>

> [@Cyan](#):
>
> Hi, all. I am new to Julia, is it possible to build a function in struct, and whether it is efficient in coding comparing with an independent function?

See: [Building function (like OOP) inside a struct - #2 by stevengj](https://discourse.julialang.org/t/building-function-like-oop-inside-a-struct/126180/2)

---

_[View the full topic](https://discourse.julialang.org/t/questions-about-function-inside-struct/129669)._
