บันทึกของวีร์ | Vee(r)'s Blog

พฤศจิกายน 26, 2011

Can we do this in other OO programming languages?

Filed under: Deep geeky, PHP — वीर @ 11:31 pm

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

Theme: Shocking Blue Green. บลอกที่ WordPress.com .

Follow

Get every new post delivered to your Inbox.

Join 632 other followers