共2篇相关文章
1、面向对象的特征有哪些方面? - 抽象:抽象是将一类对象的共同特征总结出来构造类的过程,包括数据抽象和行为抽象两方面。抽象只关注对象有哪些属性和行为,并不关注这些行为的细节是什么。 - 继承:继承是从已有类得到继承信息创建新类的过程。提供...
public static void main(String[] args) { int arr[] = {18, 1, 13, 15, 4, 7, 7}; int temp = 0; for (int i = 0; i &...