Hello guys,

I'm still new to c++. I want to know what is meant by "create an object of Pizza dynamically". Can anyone explain to me and maybe give me some examples. Thanks in advance.

I'm guessing you're being asked to allocate dynamic heap memory.

Assuming you have an object called Pizza.
Pizza *my_pizza = new Pizza();

Don't forget, you'd later need to free the memory using delete.
Ok, thanks
Topic archived. No new replies allowed.