[ create a new paste ] login | about

Link: http://codepad.org/VoYeyk8W    [ raw code | output | fork ]

srakesh - PHP, pasted on Jul 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class something
{
    private function __construct()
    {
        echo "something";
    }
   
    public static function display($msg)
    {
        echo $msg;
    }
}

something::display("Testing...");

?>


Output:
1
Testing...


Create a new paste based on this one


Comments: