note 86661 added to language.oop5.paamayim-nekudotayim
| From: | (pnahay@sprynet.com) | Date: | Tue, 28 Oct 2008 19:55:36 +0000 |
| Subject: | note 86661 added to language.oop5.paamayim-nekudotayim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145906@lists.php.net to get a copy of this message | ||
Actually, Java behaves exactly the same way; remember, we're dealing with static methods here,
not instance methods:
class ExampleSuperclass {
static String classType() {
return "superclass";
}
static void doSomething() {
System.out.println("doing something with " + classType());
}
}
class ExampleClass extends ExampleSuperclass {
static String classType() {
return "subclass";
}
}
public class JavaTest {
public static void main(String[] args) {
ExampleClass.doSomething();// doing something with superclass
}
}
----
Server IP: 208.69.120.35
Probable Submitter: 151.200.32.251
----
Manual Page -- http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
Edit -- https://master.php.net/note/edit/86661
Del: integrated -- https://master.php.net/note/delete/86661/integrated
Del: useless -- https://master.php.net/note/delete/86661/useless
Del: bad code -- https://master.php.net/note/delete/86661/bad+code
Del: spam -- https://master.php.net/note/delete/86661/spam
Del: non-english -- https://master.php.net/note/delete/86661/non-english
Del: in docs -- https://master.php.net/note/delete/86661/in+docs
Del: other reasons-- https://master.php.net/note/delete/86661
Reject -- https://master.php.net/note/reject/86661
Search -- https://master.php.net/manage/user-notes.php