sth about Inheritance
2006-03-14 16:31
309 查看
public class Test extends Test2
{
Test(String s) {
System.out.println(s);
}
public static void main(String[] args)
{
Test t=new Test("Test");
}
}
class Test2
{
Test2(String s) {
System.out.println(s);
}
}
The compiler will complain. In other words, it can not be compiled.
not know that before.
{
Test(String s) {
System.out.println(s);
}
public static void main(String[] args)
{
Test t=new Test("Test");
}
}
class Test2
{
Test2(String s) {
System.out.println(s);
}
}
The compiler will complain. In other words, it can not be compiled.
not know that before.
相关文章推荐
- Sth about Gospel||Soul Rock||Punk||RnB||Hip-Hop
- sth about memcpy
- 10 Things ASP.NET Developers Should Know About Web.config Inheritance and Overrides(转)
- Sth about Java
- Sth. about Static Library
- sth about cmake
- sth about intrusion
- Part 34 to 35 Talking about multiple class inheritance in C#
- Sth. about Static Library
- sth about interview
- Sth. about WinCE
- About Multiple Inheritance
- 英语作业(general version an narrow version about sth)
- Funtion about Override Inheritance in javascript
- sth about struts2
- sth about our coding life
- sth about abp,zero module,asp.net zero
- sth about kmp
- sth. about tarjan 第二弹~~考前复习版
- 【JS】sth about fadeOut