|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/object-oriented-programming-using-c-for-beginners/
课程评论:没有评论
**Coursera 课程:C# 入门面向对象编程** 本课程旨在介绍面向对象编程(OOP)的核心概念,并以 C# 语言为例进行讲解。 **课程概述:** 面向对象编程是一种将编程问题分解为相互作用的“对象”的编程方法。“对象”是从称为“类”的模板创建的。您可以将类比作建筑蓝图,而对象则是根据蓝图建造的“实际建筑”。 C# 是一种面向对象的编程语言。本课程将重点讲解面向对象编程的四大基本原则: * **抽象(Abstraction):** 将实体的相关属性和交互建模为类,从而定义系统的抽象表示。 * **封装(Encapsulation):** 隐藏对象的内部状态和功能,只允许通过一组公共函数进行访问。 * **继承(Inheritance):** 能够基于现有抽象创建新的抽象。 * **多态(Polymorphism):** 能够在多个抽象中以不同方式实现继承的属性或方法。 面向对象编程(OOP)是一种以对象为中心组织程序的结构,而不是以行为和逻辑为中心。这是一种设计理念,通常使用 C# 等编程语言来实现。理解 OOP 概念有助于您在应用程序设计和语言选择方面做出明智的决策。 在 OOP 中,所有内容都被组织成独立的“对象”。对象是变量、函数和数据的集合,它们执行一组相关的活动。当对象执行这些活动时,就定义了对象的行为。此外,对象是类的实例。 **课程目标:** * 理解面向对象编程的基本原理(抽象、封装、继承、多态)。 * 学习如何使用 C# 语言实现面向对象编程的概念。 * 掌握将编程问题分解为对象的方法。 * 为设计和构建更复杂、更易于维护的应用程序打下基础。 **目标学员:** * 对编程感兴趣的初学者。 * 希望了解或开始学习面向对象编程的开发者。 * 希望学习 C# 语言并掌握其面向对象特性的学习者。
object-oriented programming is an approach to programming thatbreaks a programming problem into objects that interact with each other.Objects are created from templates known as classes. You can think of a class asthe blueprint of a building. An object is the actual "building" that we build basedon the blueprint.C# is an object-oriented programming language. The four basic principles of object-oriented programming are:Abstraction Modelling the relevant attributes and interactions of entities as classes to define an abstract representation of a system.Encapsulation Hiding the internal state and functionality of an object and only allowing access through a public set of functions.Inheritance Ability to create new abstractions based on existing abstractions.Polymorphism Ability to implement inherited properties or methods in different ways across multiple abstractions.Object oriented programming (OOP) is a programming structure where programs are organized around objects as opposed to action and logic. This is essentially a design philosophy that uses a different set of programming languages such as C#. Understanding OOP concepts can help make decisions about how you should design an application and what language to use.Everything in OOP is placed together as self-sustainable "objects." An object is a combination of variables, functions, and data that performs a set of related activities. When the object performs those activities, it defines the object's behaviour. In addition, an object is an instance of a class.