PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

(Choose 1 answer)
What is the result of running the program below?
import java.util.*;
import java.lang.*;
class Vase {
String color;
int price;
Vase() { }
Vase(String color, int price) {
this.color = color;this.price = price;}
}
public String toString() { return (color + "," + price);
}
class SpecVase extends Vase {
int type;
SpecVase() { }
SpecVase(String color, int price, int type) {
this.type = type;super(color, price);
}
void display() {
String s = "(" + super.toString() + "," + type + ") ";1
System.out.println(s);
}
}
public class Main {
public static void main(String args){

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
225.9 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom