检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:李涛 任廷艳 王传德 Li Tao;Ren Tingyan;Wang Chuande(School of Computer and Information,Qiannan Normal University for Nationalities,Duyun,Guizhou 558000,China)
机构地区:[1]黔南民族师范学院计算机与信息学院,贵州都匀558000
出 处:《计算机时代》2025年第3期60-63,共4页Computer Era
摘 要:面向对象程序设计(OOP)的核心思想是构建高质量软件系统的基石,但学生常因经验不足导致代码耦合度高、复用性差。设计模式作为经典问题解决方案,通过提炼优秀设计经验,可强化学生对OOP特性的理解并提升代码质量。本文以工厂方法模式与类适配器模式为例,展示设计模式在解耦逻辑、增强扩展性及接口兼容性中的实践应用。教学实践表明,引入设计模式后,学生代码耦合度显著降低,开发效率提升,有效培养了抽象思维与系统设计能力。The core idea of object-oriented programming(OOP)is the cornerstone for constructing high-quality software systems.However,students often lack experience,resulting in high code coupling and poor reusability.Design patterns,as canonical solutions to recurring problems,can enhance students'understanding of OOP characteristics and improve code quality by refining excellent design experiences.This article takes factory method pattern and class adapter pattern as examples to demonstrate the practical application of design patterns in decoupling business logic,enhancing extensibility and interface compatibility.Teaching practice shows that after introducing design patterns,students'code coupling is significantly reduced,development efficiency is improved,and students'abstract thinking and system design capabilities are effectively cultivated.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.200