Skip to Content
0

How are they calling a method without instantiating the class ?

Apr 22, 2017 at 06:49 PM

36

avatar image
Former Member

According to UI5 sdn kit

What is understand is

"sap.ui.core" is a class

"sap.ui.getCore" is a method of class "sap.ui.core"

Then shouldn't the statement should be like this

var oCore = new sap.ui.core( ); <-------Class is instantiated

oCore .getCore ( ) <----------object of the istantiated class is called

capture.png (9.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jun Wu Apr 23, 2017 at 04:43 AM
0

you know static method, which need no instance to get called?

Share
10 |10000 characters needed characters left characters exceeded