委托与事件 信用卡还款 总体: 分别定义一个储蓄卡类,信用卡类,委托事件类,测试类
储蓄卡类
class Depositcard{private string name;//储蓄用户名private int depositmoney;//储蓄金额public Depositcard(string name, int mone…
using System;
using System.Collections.Generic;
namespace card_work
{ undefined
class depositCard { undefined
//储蓄名
private string name; //储蓄金额 private int depositMoney; //基础储蓄金额 public depositCard(string name, int money) { undefined thi…
CONTENTS AT A GLANCE PART TWO MODELING CHAPTER 10 Component-Level Design 276 10.2 DESIGNING CLASS-BASED COMPONENTS The Open-Closed Principle (OCP). "A module[component] should be open for extension but closed for modification" 简单说…
20162314 2017-2018-1 《Program Design & Data Structures》Learning Summary Of The Eighth Week Summary of Key Concepts A binary search tree is a binary tree in which, for each node, the elements in the left subtree are less than the parent, and the eleme…