摘要: Initializing Array Elements int[] myIntArray = new int[5] { 2, 4, 6, 8, 10 }; // longer syntax int[] myIntArray = { 2, 4, 6, 8, 10 }; ... 阅读全文
posted @ 2015-04-07 18:44 郭松 阅读(323) 评论(0) 推荐(0)
摘要: An interface is a contract(协定) that guarantees to a client how a class or struct will behave.When a class implements an interface(实现一个接口), it tells an... 阅读全文
posted @ 2015-04-07 18:38 郭松 阅读(162) 评论(0) 推荐(0)
摘要: 与类密切相关的几个特征便是继承,多态和封装了,继承inheritanceThe specialization relationship is typically implemented using inheritance.Polymorphism(多态): There are two powerfu... 阅读全文
posted @ 2015-04-07 12:50 郭松 阅读(111) 评论(0) 推荐(0)