cancel
Showing results for 
Search instead for 
Did you mean: 

How are they calling a method without instantiating the class ?

BODHISATTWA__20
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

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