PRN211_-_SU_2024_-_FE_2375.webp
V

PRN211_-_SU_2024_-_FE_2375.webp

Kizspy | Question: 10
(Choose 1 answer)
record A
{
static int x = 1;
static A() => x = 4;
public A()=> x = 5;
public void Print() => Console.WriteLine($"{x},{++x}");
}
class Program{
static void Main(string[] args){
A obj = new A();
obj.Print();
}
}
The output will be:
A. 5,6
B. 6,5
C. 4,5
D. 1,4

Thông tin

Category
PRN211
Thêm bởi
Việt Hoàng1
Ngày thêm
Lượt xem
1,308
Lượt bình luận
11
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom