面向对象三大特征之封装
public static void main(String[] args) { WarTeam a = new WarTeam(); a.zdmc = "明日方舟"; Role s = new Role(); Role s2 = new Role(); Role s3 = new Role(); Role s4 = new Role(); Role s5 = new Role(); Role s6 = new Role(); Role s7 = new Role(); Role s8 = new Role(); Role s9 = new Role(); Role s10 = new Role(); s.setName("银"); s2.setName("真理"
面向对象三大特征之封装最先出现在Python成神之路。
共有 0 条评论