package Test;
class SuperClass{
int x;
SuperClass()
{
x=3;
System.out.println(“in supclass:x=”+x);
}
void doSome服务器托管网thing() {
System.out.println(“in superclass:do something()”);
}
}
class SubClass extends SuperClass{
int x;
SubClass()
{
super();
x=5;
System.out.println(“in subclass:x=”+x);
}
void doSomething() {
super.doSomething();
System.out.println(“in subclass.dosomething()”);
System.out.println(“super.x=”+super.x+”sub.x”+x);
服务器托管网
}
}
public class Inheritance {
public static void main(String args[])
{
SubClass subC=new SubClass();
subC.doSomething();
}
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: Semantic Kernel .NET SDK 的 v1.0.0 Beta1 发布
介绍 Semantic Kernel (SK) 是一个开源的将大型语言模型(LLM)与流行的编程语言相结合的SDK,Microsoft将Semantic Kernel(简称SK)称为轻量级SDK,结合了OpenAI,Azure OpenAI和Hugging F…