Need help in object oriented programming

This is where it is called with no further arguments.

Custom_rounded_container.call(this);

Is it possible that you meant to use this instead?

Custom_rounded_container.call(this[color="green"], selector, color[/color]);

All working now.

Hurrah, that’s what we like to see :slight_smile:

Thanks once again.

Now I can start creating parent methods and implementing them.

Yep, thats what I changed it to.

and I figured out why it wasn’t working with the superclass bit of code

All_rounded_corners_one_element.prototype.superclass = Custom_rounded_container;

needed to be after


All_rounded_corners_one_element.prototype  = new Custom_rounded_container();
All_rounded_corners_one_element.prototype.constructor = All_rounded_corners_one_element;

like so:


All_rounded_corners_one_element.prototype  = new Custom_rounded_container();
All_rounded_corners_one_element.prototype.constructor = All_rounded_corners_one_element;
All_rounded_corners_one_element.prototype.superclass = Custom_rounded_container;

instead of


All_rounded_corners_one_element.prototype.superclass = Custom_rounded_container;
All_rounded_corners_one_element.prototype  = new Custom_rounded_container();
All_rounded_corners_one_element.prototype.constructor = All_rounded_corners_one_element;