PRO192_-_C1_-_RE_-_SU_2023_545.webp
Hoàng Long1

PRO192_-_C1_-_RE_-_SU_2023_545.webp

Answer (Choose 1 answer)

Read the following Java program:
class Person
{
String name;
public Person(String name) {
this.name = name;
}
}
class Student extends Person
{
double marks;
public Student(double marks, String name) {
[Blank A]
this.marks = marks;
}
public String toString()
return name + " - " + marks;
}
} public class Main {
public static void main(String[] args) {
Student s = new Student(7.5, "John Vu");
System.out.println(s);}
} The program output looks like as helow
Exit 4

Thông tin

Category
PRO192
Thêm bởi
Hoàng Long1
Ngày thêm
Lượt xem
2,371
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C1_-_RE_-_SU_2023_545.webp
File size
54.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom