PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

32
Answer (Choose 1 answer)
A. first second third Peter 42
B. Peter 42 first second third
C. third second first Peter 42
D. third first second Peter 42
E. Peter 42 third second first
11. public class Person {
12. int age;
13. String name;
14.
15. public Person() {
16. this("Peter");
17. System.out.print("first ");
18. } 19.
20. public Person(String name) {
21.this(42, "Peter");
22.System.out.print("second ");
23. } 24.
25. public Person(int age, String name) {
26 this.age = age;
27.this.name = name;
28. System.out.print("third ");
29. } 30.
31. public static void main(String[] args) {
);32 Person b = new Person(
33. System.out.print(b.name +" "+ b.age);
34. } 35.}
What is the result?


Thông tin

Category
PRO192
Thêm bởi
Erza_girl
Ngày thêm
Lượt xem
3,538
Lượt bình luận
17
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_FA_2023_-_FE_1027.webp
File size
62.8 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom