Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 JavaScript class concept documentation

$
0
0

Hi everybody,

 

in JavaScript there are no classes. There is also no class based inheritance. JS uses prototypical inheritance.

Some developers seem to recognize this as a deficit. Hence, many JS frameworks define there own class concepts using the builtin features of JS.

This is also true for SAPUI5.

 

"sap.ui.base.Object" is defined as the base class for all SAPUI5 Objects.

 

Is there any documentation available that explaines the SAPUI5 class concept?

So far I could't find this information.

 

Questions that come to my mind are:

 

How to define a new class?
How to define a constructor? Is it necessary to call the super constructor?

 

There is no multiple inheritance, right? Are there interfaces or mixins?

 

How to define methods? How to call super methods?

Methods can be abstract? How to define them?

 

How to define member properties? What about visibility of the member properties?

 

There is a metadata property in the class definition. What is it used for?

 

 

TIA,

 

Thomas


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>