PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
Mai Linh 2001

PRO192_-_SU_2023_-_Block_5_-_RE_753.webp

Answer (Choose 1 answer)
A. this.name = name;
B. super(name);
C. all above options are correct
Read the following Java program:
class Person
{
String 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 below:
John Vu - 75


Thông tin

Category
PRO192
Thêm bởi
Mai Linh 2001
Ngày thêm
Lượt xem
1,737
Lượt bình luận
18
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
File size
56.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom