คลาสและหลักการ DRY

หลักการวิศวกรรมซอฟต์แวร์ใน Python

Adam Spannbauer

Machine Learning Engineer at Eastman

การสร้างคลาส SocialMedia

  ไฟล์คลาส Social Media

หลักการวิศวกรรมซอฟต์แวร์ใน Python

หลักการ DRY

ร่มสัญลักษณ์ DRY

หลักการวิศวกรรมซอฟต์แวร์ใน Python

หลักการ DRY

ร่มสัญลักษณ์ DRY

หลักการวิศวกรรมซอฟต์แวร์ใน Python

หลักการ DRY

ร่มสัญลักษณ์ DRY

หลักการวิศวกรรมซอฟต์แวร์ใน Python

หลักการ DRY

ร่มสัญลักษณ์ DRY

หลักการวิศวกรรมซอฟต์แวร์ใน Python

เบื้องต้นเกี่ยวกับการสืบทอด

  การสืบทอดจากคลาส Document

หลักการวิศวกรรมซอฟต์แวร์ใน Python

การสืบทอดใน Python

โครงสร้างการสืบทอด

หลักการวิศวกรรมซอฟต์แวร์ใน Python

การสืบทอดใน Python

# Import ParentClass object
from .parent_class import ParentClass

# Create a child class with inheritance class ChildClass(ParentClass): def __init__(self): # Call parent's __init__ method ParentClass.__init__(self)
# Add attribute unique to child class self.child_attribute = "I'm a child class attribute!"
# Create a ChildClass instance child_class = ChildClass() print(child_class.child_attribute) print(child_class.parent_attribute)
หลักการวิศวกรรมซอฟต์แวร์ใน Python

มาฝึกกันเถอะ!

หลักการวิศวกรรมซอฟต์แวร์ใน Python

Preparing Video For Download...