Class Creation in Object Oriented Python

4.3
75 個評分
提供方
Coursera Project Network
2,482 人已註冊
在此指導項目中,您將:

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 classes
  • scripting
  • object oriented python
  • python objects
  • Computer 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的熱門評論

查看所有評論

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心