Can we do this in other OO programming languages? … I misunderstood about static method?
<?php
class A {
public static function func1() {
return "ABC";
}
}
$a = new A;
print $a->func1() . "\n";
?>