ควิซ Python: #oop

ควิซเกี่ยวกับ #oop 14 ชุด พร้อมคำอธิบายทุกคำตอบ

1 คลาสและอ็อบเจกต์ ง่าย เรียนรู้ว่าคลาส อ็อบเจกต์ class attribute และ instance attribute ทำงานร่วมกันอย่างไร Python · Python เชิงวัตถุ #oop#classes 10 ข้อ · ~5 นาที ยังไม่เริ่ม เริ่ม
2 __init__ และ self ง่าย เตรียมอ็อบเจกต์ใหม่ด้วย __init__ และเข้าใจว่า self คืออะไรกันแน่ Python · Python เชิงวัตถุ #oop#constructors 10 ข้อ · ~5 นาที ยังไม่เริ่ม เริ่ม
3 การสืบทอดคลาส ปานกลาง นำคลาสกลับมาใช้และต่อยอดด้วยการสืบทอด การ override เมธอด และ super() Python · Python เชิงวัตถุ #oop#inheritance 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
4 เมธอด Dunder ยาก ทำให้คลาสของคุณทำงานกับ print, ==, +, len, in, sorted และการเรียกแบบฟังก์ชันได้ Python · Python เชิงวัตถุ #oop#dunder-methods 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
5 Property และ Class Method ยาก ใช้ @property, setter, @classmethod และ @staticmethod พร้อมเลี่ยงกับดักของมัน Python · Python เชิงวัตถุ #oop#properties 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
4 Python OOP Interview Questions ปานกลาง Classes, inheritance, super(), name mangling and abstract classes as interviewers ask about them. Python · Python Interview Questions #oop#interview 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
1 Prototypes ยาก Follow the prototype chain to see where JavaScript finds a property and what happens when you write to one. JavaScript · Objects, Prototypes & Classes #prototypes#oop 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
2 Classes & Inheritance ปานกลาง Practice JavaScript classes, extends, super and the rules about this inside methods. JavaScript · Objects, Prototypes & Classes #classes#oop 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
1 Classes & Constructors ง่าย Check how Java creates objects, runs constructors and shares references. Java · Object-Oriented Java #oop#classes 10 ข้อ · ~5 นาที ยังไม่เริ่ม เริ่ม
2 static & final ปานกลาง Know what belongs to the class, what belongs to each object and what can never change. Java · Object-Oriented Java #oop#static 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
3 Inheritance & Polymorphism ปานกลาง Predict which method runs when a subclass hides behind a parent reference. Java · Object-Oriented Java #oop#inheritance#polymorphism 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
4 Abstract Classes & Interfaces ปานกลาง Know when to use an abstract class, when to use an interface and what each one allows. Java · Object-Oriented Java #oop#interfaces#abstract-classes 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม
5 equals() & hashCode() ยาก Master the equals/hashCode contract and the HashSet and HashMap bugs that break it. Java · Object-Oriented Java #oop#interview 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
4 Static vs Instance ปานกลาง Know what belongs to the class and what belongs to each object, a favorite Java interview topic. Java · Java Interview Questions #oop#interview 10 ข้อ · ~6 นาที ยังไม่เริ่ม เริ่ม

แท็กอื่น: