7
วิธีการโทรหา super constructor ในลอมบอก
ฉันมีชั้นเรียน @Value @NonFinal public class A { int x; int y; } ฉันมีคลาส B อีกคน @Value public class B extends A { int z; } ลอมบ็อกเกิดข้อผิดพลาดโดยบอกว่าไม่พบตัวสร้าง A () เรียกอย่างชัดเจนว่าสิ่งที่ฉันต้องการให้ลอมบอกทำคือให้คำอธิบายประกอบกับคลาส b เพื่อให้สร้างรหัสต่อไปนี้: public class B extends A { int z; public B( int x, int y, int z) { super( x …