Class Creation in Object Oriented Python

4.4
58 个评分
提供方
Coursera Project Network
2,070 人已注册
在此指导项目中,您将:

How to prepare a class definition

How to create a constructor and Getters and Setters

How to sort data using objects

Clock1 hour
Beginner初级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

Python is an Object Oriented Language. Object Oriented languages allow the developer to think in terms of real-world objects, such as people, cars, and animals for example. In the procedural realm, developers think in terms of functions (or procedures) and the data those functions act on. By using objects, the data can be combined with functionality – a person has eye color, an animal has behavior etc. This can lead to programs that are easier to understand, maintain, and reuse. In this course, you will create a Python application in which you will create a class definition, create a constructor for the class, create object instances of the class, and sort a list of objects created from a file. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

python classesscriptingobject oriented pythonpython objectsComputer Programming

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Create the Class definition based on requirements.

  2. Create the Constructor to allow us to create objects with data.

  3. Add a String representation of the object for output.

  4. Add Getters and Setters to access and modify the attributes.

  5. Sort a list of objects.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

审阅

来自CLASS CREATION IN OBJECT ORIENTED PYTHON的热门评论

查看所有评论

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心