PRN211_-_FA_2023_-_RE_1148.webp
T

PRN211_-_FA_2023_-_RE_1148.webp

(Choose 1 answer)
record A
public int x { get; set; } = 1;public int y { get; set; } = 2;
public void Print()=>Console.Write($"{x},{y}");
}
record B: A{
public B(){
x++;y++;
}
}
class Program {
static void Main(string[] args) { A obj1 = new B();obj1.Print();Console.WriteLine();
}
}
The output will be:
A. 2,3
w
Finish
E24

Thông tin

Category
PRN211
Thêm bởi
thanhtam76
Ngày thêm
Lượt xem
936
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN211_-_FA_2023_-_RE_1148.webp
File size
41.9 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom