PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

40
Answer (Choose 1 answer)
A. ToString():
B. ToString()
C. toString():
D. toString()
}


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) {
super(name);
this.marks = marks;}
public String [Blank A]
{ } 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

Thông tin

Category
PRO192
Thêm bởi
Erza_girl
Ngày thêm
Lượt xem
3,422
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
57.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom