ตัวดำเนินการเช่น + และ [ ] ไม่ใช่เวทย์มนตร์ แต่เป็นสายที่ปลอมตัวมา Kotlin ช่วยให้คุณกำหนดตัวดำเนินการ fun plus สำหรับประเภทของคุณ ดังนั้นคณิตศาสตร์เวกเตอร์จึงอ่านได้เหมือนกับคณิตศาสตร์ เคล็ดลับคือรสนิยม: ถ้า + เริ่มคำขอ HTTP แสดงว่าคุณสับสนกับผู้อ่าน ใช้การโอเวอร์โหลดเมื่อความหมายชัดเจน

บวกรับและเพื่อน ๆ
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.