# \#class

**URL:** https://discuss.ocaml.org/tag/class/584.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [\`self\` use case?](https://discuss.ocaml.org/t/self-use-case/11774)

<div class="topic-metadata">

**Author:** [@anzhi0708](https://discuss.ocaml.org/u/anzhi0708)\
**Replies:** 4\
**Last updated:** [March 24, 2023, 2:37pm UTC](https://discuss.ocaml.org/t/self-use-case/11774 "2023-03-24T14:37:12Z")

</div>

Hello! Documentation says ...In fact this names the object, allowing you to call methods in the same class or pass the object to functions outside the class. In other words, it's exactly the same as this in C++/Java. ..…
