Why not just override setItemAt() and augment it with the new behavior
instead of creating a new method? This way it follows normal conventions
and you can throw an error if, for instance, you don't get a DaySlice
object or do something else if it's a different type of object.
override public function setItemAt(
item:Object, index:int):Object
{
if (item is DaySlice) {
// do something special for dayslice
} else {
throw new Error("Expected a day slice
object.");
}
// if you leave out the else,
// then all other objects will just get normal
behavior
// versus throwing an error
super.setItemAt(item, index);
}
To "disable" the existing method would be going against OOP design
practices for reusability and extensibility not to mention confusing
anyone else who may try to use your class (affecting readability and
maintainability).
Scott