Can we do this in other OO programming languages?

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";
?>
Advertisements