# Julia OOP example

**URL:** <https://discourse.julialang.org/t/julia-oop-example/27568>\
**Category:** General Usage\
**Created:** [August 15, 2019, 2:33am UTC](https://discourse.julialang.org/t/julia-oop-example/27568 "2019-08-15T02:33:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [August 15, 2019, 4:25am UTC](https://discourse.julialang.org/t/julia-oop-example/27568/3 "2019-08-15T04:25:38Z")

</div>

there was an intersting discusion about this:

> [@Composition and inheritance: the Julian way](https://discourse.julialang.org/t/composition-and-inheritance-the-julian-way/11231):
>
> I am a relatively newbie and I am wondering what is the most appropriate Julian way to reuse the code. I don’t want to trigger discussions on topics already discussed a million times. This post simply aims to lay down a clear list of rules to be followed to write good Julia code, and pose a couple of questions. Let’s start with an example: I have a type Person mutable struct Person \<: AbstractPerson name::String age::Int end and a lot (hundreds) of methods dealing with it. Now I wa…

---

_[View the full topic](https://discourse.julialang.org/t/julia-oop-example/27568)._
