# How do I have an object inherit another one in C++?

**URL:** <https://forums.unrealengine.com/t/how-do-i-have-an-object-inherit-another-one-in-c/401123>\
**Category:** C++\
**Tags:** error, unreal-engine, message-log, UE4, question, CPP\
**Created:** [August 3, 2017, 9:47pm UTC](https://forums.unrealengine.com/t/how-do-i-have-an-object-inherit-another-one-in-c/401123 "2017-08-03T21:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f5c413](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f5c413](https://forums.unrealengine.com/u/anonymous_user_90f5c413)\
**Post date:** [August 3, 2017, 9:47pm UTC](https://forums.unrealengine.com/t/how-do-i-have-an-object-inherit-another-one-in-c/401123/1 "2017-08-03T21:47:39Z")

</div>

I am creating a C++ class that takes care of all sorts of things, but the message log tells me it must be inherit a UOBJECT. I have no idea what this means nor how to set up inheritance.

---

<div class="post-metadata">

**Author:** ![teak421](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teak421/32/902996_2.png) [@teak421](https://forums.unrealengine.com/u/teak421)\
**Post date:** [August 3, 2017, 11:20pm UTC](https://forums.unrealengine.com/t/how-do-i-have-an-object-inherit-another-one-in-c/401123/2 "2017-08-03T23:20:24Z")

</div>

Did you use the C++ class wizard inside of the UE4 editor?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90f5c413](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90f5c413](https://forums.unrealengine.com/u/anonymous_user_90f5c413)\
**Post date:** [August 4, 2017, 11:29am UTC](https://forums.unrealengine.com/t/how-do-i-have-an-object-inherit-another-one-in-c/401123/3 "2017-08-04T11:29:26Z")

</div>

yes, I did use the class wizard
