DEV Community

[Comment from a deleted post]
Collapse
 
miguelbarcelo profile image
MiguelBarcelo

But, what happen when you create the new object this.cake = new Cake(); if the class Cake constructor its waiting for two parameters. Thank you!