# Including child class breaks program

**URL:** <https://forums.unrealengine.com/t/including-child-class-breaks-program/433267>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 5, 2018, 11:16pm UTC](https://forums.unrealengine.com/t/including-child-class-breaks-program/433267 "2018-09-05T23:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_22b921e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_22b921e1](https://forums.unrealengine.com/u/anonymous_user_22b921e1)\
**Post date:** [September 5, 2018, 11:16pm UTC](https://forums.unrealengine.com/t/including-child-class-breaks-program/433267/1 "2018-09-05T23:16:18Z")

</div>

In my program, I include class Foo to my game manager class and everything works. Then I include Bar (a subclass to foo) into the game manager and then my program breaks, saying that Foo has an error and therefore Bar won’t compile. However, when I include Foo and create a Foo actor through the game manager, everything is fine. There are no errors in Foo at all.
