Can someone tell me what is wrong with this code?

class A public : AActor
{
public:
(Dosomething)
}

class B public : A
{
    public:
         (Dosomething)
        TArray<C> AnArray;
}

class D public : AActor
{
    public:
        (Dosomething)
        class B* dummy;
         Foo();
}

D::Foo()
{
    dummy->AnArray.Add(Something);
}

EXCEPTION_ACCESS_VIOLATION error keeps popping up!
I can’t find out what is the problem.
Please help me!

Hi! “:” are not in right place in most inheritance parts. Also check that your dummy variable is initialized.

Thank you so much!

Lol, why did i add “:” there?