摘要: 抽象类就是指被设计为被继承的类。抽象类只能作为其他类的基类。 (其实简单来说就是好多东西它有一个共同的作用,但是他们去实现的方法和效果都不一样,比如动物都会发出叫声,但它们的叫声各不相同。这时就可以把叫声这个方法定义在抽象类里面不同的动物去继承它,分别实现各自具体的叫声。) 注意: 1.不能创建抽象 阅读全文
posted @ 2020-06-06 14:11 奔腾的岩浆 阅读(138) 评论(3) 推荐(0) 编辑
摘要: C# 字典 1. 使用字典原因 通常情况下,我们可以通过int类型的索引号来从数组或者list集合中查询所需的数据。但是如果情况稍微复杂一点:索引号是非int型数据比如string或其他类型该如何操作呢。这个时候我们就可以使用字典了。 2. 什么是字典 顾名思义,字典是一种让我们可以通过索引号查询到 阅读全文
posted @ 2020-06-06 10:39 奔腾的岩浆 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 所谓依赖,举个例子说明,一个类Person,另一个类Car,如果Person的某个方法比如说drive,需要引用Car,则称Person类依赖于 Car类,延伸到对象,这种依赖关系依然成立,比如说Person类的对象boy依赖于Car类的对象toyota。再讲讲这个drive方法的实现,假定代码如下 阅读全文
posted @ 2020-06-06 08:48 奔腾的岩浆 阅读(130) 评论(1) 推荐(0) 编辑
摘要: 单例模式(Singleton Pattern)是 Java 中最简单的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 这种模式涉及到一个单一的类,该类负责创建自己的对象,同时确保只有单个对象被创建。这个类提供了一种访问其唯一的对象的方式,可以直接访问,不需要实例化该 阅读全文
posted @ 2020-06-03 15:49 奔腾的岩浆 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 项目管理器-引用-右键单击添加引用-在COM选项卡中搜索ADO, 选择Microsoft ADO Ext. 2.8 for DDL and Security添加。OK。 阅读全文
posted @ 2019-08-02 15:04 奔腾的岩浆 阅读(795) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2019-04-22 14:55 奔腾的岩浆 阅读(229) 评论(4) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2019-04-18 10:32 奔腾的岩浆 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: 移动图形 移动 画图 阅读全文
posted @ 2019-04-18 09:50 奔腾的岩浆 阅读(130) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2019-04-17 17:33 奔腾的岩浆 阅读(432) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2019-04-17 13:55 奔腾的岩浆 阅读(295) 评论(0) 推荐(0) 编辑