Which code segment should you use to call the base method?

You are developing a custom tooltip control that inherits from an existing WinJS tooltip control. The
custom control overrides the open ( ) method of the base control to extend the functionality. The
following code segment depicts the structure of the method override.
Open: function (type) {

}
You need to ensure that the base method executes at the start of the override. Which code segment
should you use to call the base method?

You are developing a custom tooltip control that inherits from an existing WinJS tooltip control. The
custom control overrides the open ( ) method of the base control to extend the functionality. The
following code segment depicts the structure of the method override.
Open: function (type) {

}
You need to ensure that the base method executes at the start of the override. Which code segment
should you use to call the base method?

A.
this.base.open ( ) ;

B.
this .super.open ( ) ;

C.
base.open( ) ;

D.
this.prototype.open( );



Leave a Reply 0

Your email address will not be published. Required fields are marked *