摘要:
多态? 假设我们有一个Animal类,其中包含一个makeSound()方法。现在我们可以创建多个子类,如Dog和Cat,它们可以继承Animal类并覆盖makeSound()方法,以产生不同的声音。 public class Animal { public void makeSound() { S 阅读全文
摘要:
实验一 实验源码 assume cs:code, ds:data data segment x db 1, 9, 3 len1 equ $ - x y dw 1, 9, 3 len2 equ $ - y data ends code segment start: mov ax, data mov d 阅读全文