Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

Re: Calling an instance method from static method?

$
0
0

Of course it works, why do you need a confirmation? The most known example is the "factory" method whose goal is to return an instance. It may be forbidden of creating an instance (CREATE OBJECT) from outside by declaring the class with the private or protected instantiation flag.


Viewing all articles
Browse latest Browse all 3116


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