Hi,
I was wondering for classes that extend Class: sap.ui.base.Object, how do you declare static methods?
For example, given the Dog class definition below, how would I add a static method getStaticBark() ?
I would like to call the static method as follows: my.Dog.getStaticBark();
///////////////////////////////////////////////////////////
//Dog Class Definition
sap.ui.base.Object.extend('my.Dog', {
getBark: function () {
return "bark";
},
});//end class
thanks for any help.
regards,
Phong