# Data class inheritance

**URL:** <https://discuss.kotlinlang.org/t/data-class-inheritance/4107>\
**Category:** Uncategorized\
**Created:** [August 9, 2017, 6:58pm UTC](https://discuss.kotlinlang.org/t/data-class-inheritance/4107 "2017-08-09T18:58:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [August 9, 2017, 8:15pm UTC](https://discuss.kotlinlang.org/t/data-class-inheritance/4107/2 "2017-08-09T20:15:12Z")

</div>

You can inherit a data class from a non-data class. Inheriting a data class from another data class is not allowed because there is no way to make compiler-generated data class methods work consistently and intuitively in case of inheritance.

---

_[View the full topic](https://discuss.kotlinlang.org/t/data-class-inheritance/4107)._
