Skip to Content
avatar image
Former Member

How are they calling a method without instantiating the class ?

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 23, 2017 at 04:43 AM

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

    Add comment
    10|10000 characters needed characters exceeded