摘要:
1:继承的定义:Java继承是面向对象的最显著的一个特征。继承是从已有的类中派生出新的类,新的类能吸收已有类的数据属性和行为,并能扩展新的能力。2:关键字: extends :继承3:格式形式: public class A extends B {} A:代表子类 B:代表父类4:子类可继承父类的... 阅读全文
摘要:
数据类型:Boolean(布尔型) int long short byte float double char class interface(接口)流程控制:if else do while for switch case default break continue return try (捕... 阅读全文
摘要:
#include #include int main (void){ int num,answer,count=0; srand(time(NULL)); answer = rand()%100+900; while (1){ printf("请输入您的数字:\n"); scanf("%... 阅读全文