对象创建过程

    技术2024-07-30  77

    //对象创建过程 public class TestConstructors12 { public static void main(String[] args) { Student s = new Student(); } } class Student { String name; int age; String sex; double score; public Student() { System.out.println("111"); } }
    Processed: 0.029, SQL: 9