|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/oops-using-python/
课程评论:没有评论
Coursera 课程摘要:Python 面向对象编程:从入门到精通 本课程将带您探索一种有趣的编程方式——面向对象编程(OOP)。我们将以“搭积木”为例,将计算机程序中的每个“积木”比作一个名为“对象”的特殊事物。 课程将从基础讲起,重点讲解: * **对象(Objects)和类(Classes)**:理解对象如同现实世界中的具体事物(如汽车、猫),而类则是创建这些事物的“蓝图”。您将学习如何创建自己的对象并用它们来解决问题。 * **继承(Inheritance)**:如同父母将特质传给子女,继承允许一个类重用另一个类的代码,从而简化程序、提高效率。 * **封装(Encapsulation)**:如同将物品放入盒子,封装是将某些数据隐藏在对象内部,只对外暴露必要接口,以此来保证程序的安全性和易用性。 完成本课程后,您将能够: * 使用面向对象的方法创建自己的 Python 程序。 * 构建诸如模拟 ATM 机(支持存款和取款)等应用程序。 * 模拟现实世界中的事物,如汽车和动物。 如果您想成为一名更优秀的程序员并创造酷炫的应用程序,本课程将是您的不二之选。准备好享受学习的乐趣,掌握强大的新技能吧!
In this course, we'll explore a fun way to write computer programs called 'object-oriented programming' or 'OOP'. Think of it like building with blocks. Each block is like a special thing called an 'object'. We'll start with the basics. We'll learn what objects and classes are. Objects are like the things around us, like a car or a cat. Classes are like blueprints for making those things. We'll learn how to make our own objects and use them to solve problems.One cool thing we'll learn is called 'inheritance'. It's like passing down traits from parents to children. In programming, it means we can reuse code from one class in another class. This makes our programs easier to understand and saves us time.We'll also learn about 'encapsulation'. It's like putting things in a box. We'll keep some things hidden inside our objects and only show what's necessary. This makes our programs safer and easier to use.By the end of the course, you'll be able to create your own programs using OOP. You'll be able to make things like a pretend ATM machine, where you can deposit and withdraw money. You'll also be able to model real-world things like cars and animals.So, if you want to become a better programmer and build cool stuff, this course is for you! Get ready to have fun and learn some awesome new skills!