Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
PHP
我今天发现PHP可以静态调用未声明静态的方法,请问JAVA,C++等语言可以么?
m4ker
·
Mar 4, 2011
· 4835 views
This topic created in 5543 days ago, the information mentioned may be changed or developed.
<?php
class test{
function test2(){
echo 'it works too';
}
}
test::test2();
这么写通过了,我想知道其他语言是否可以,请附上试验代码。
No Comments Yet
test2
test
静态
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1374 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms ·
UTC 23:55
·
PVG 07:55
·
LAX 16:55
·
JFK 19:55
♥ Do have faith in what you're doing.
❯