2022年6月20日 星期一

class

 class

2022/05/31

-----


https://pixabay.com/zh/photos/university-lecture-campus-education-105709/

-----

Python class

找了三份 Python 的 class 教學文件,分別為為「w3school」兩篇 [1], [2],「programiz」五篇 [3] - [7],以及「geeksforgeeks」九篇 [8] - [16]。


◎ w3school

第一篇:物件。講了「class、object、__init__()、method、self、del」等觀念 [1]。

第二篇:繼承。講了「inheritance、parent class、child class、super()」等觀念 [2]。


◎ programiz

第一篇:物件導向程式。講了「class、object、method、inheritance、encapsulation、polymorphism」等觀念 [3]。

第二篇:物件。講了「class、object、constructors、del」等觀念 [4]。

第三篇:繼承。講了「inheritance、method」等觀念 [5]。

第四篇:多重繼承。講了「multiple inheritance、multilevel inheritance、method resolution order」等觀念 [6]。

第五篇:運算子多載。講了「operator overloading、special functions、overloading the + operator、overloading comparison operators」等觀念 [7]。


◎ geeksforgeeks


-----

References


# class、object、__init__()、method、self、del

[1] Python Classes

https://www.w3schools.com/python/python_classes.asp


# inheritance、parent class、child class、super()

[2] Python Inheritance

https://www.w3schools.com/python/python_inheritance.asp


[3] Python Object Oriented Programming

https://www.programiz.com/python-programming/object-oriented-programming


[4] Python Classes and Objects [With Examples]

https://www.programiz.com/python-programming/class


[5] Python Inheritance (With Examples)

https://www.programiz.com/python-programming/inheritance


[6] Python Multiple Inheritance: What is it and How to use it?

https://www.programiz.com/python-programming/multiple-inheritance


[7] Python Operator Overloading

https://www.programiz.com/python-programming/operator-overloading


[8] Python Classes and Objects - GeeksforGeeks

https://www.geeksforgeeks.org/python-classes-and-objects/


[9] Constructors in Python - GeeksforGeeks

https://www.geeksforgeeks.org/constructors-in-python/?ref=lbp


[10] Destructors in Python - GeeksforGeeks

https://www.geeksforgeeks.org/destructors-in-python/?ref=lbp


[11] Inheritance in Python - GeeksforGeeks

https://www.geeksforgeeks.org/inheritance-in-python/?ref=lbp


[12] Types of inheritance Python - GeeksforGeeks

https://www.geeksforgeeks.org/types-of-inheritance-python/?ref=lbp


[13] Encapsulation in Python - GeeksforGeeks

https://www.geeksforgeeks.org/encapsulation-in-python/?ref=lbp


[14] Polymorphism in Python - GeeksforGeeks

https://www.geeksforgeeks.org/polymorphism-in-python/?ref=lbp


[15] Class or Static Variables in Python - GeeksforGeeks

https://www.geeksforgeeks.org/g-fact-34-class-or-static-variables-in-python/?ref=lbp


[16] Class method vs Static method in Python - GeeksforGeeks

https://www.geeksforgeeks.org/class-method-vs-static-method-python/?ref=lbp

-----

Python Machine Learning(目錄)

https://mandhistory.blogspot.com/2022/05/python.html

-----

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。