PRN292c_-_FA_2023_-_1_1180.webp
lanhoa86

PRN292c_-_FA_2023_-_1_1180.webp

  • Media owner lanhoa86
  • Ngày thêm
Answer (Choose 1 answer)
}
A. 6
B. 0


What is the output of the following code?
class Sample
{
int x, y;
public Sample() { x = 0; y = 0;
}
public Sample(int x, int y){this.x = x; this.y = y;
}
public int getXY { get{return x * y;}}}
static void Main(string[] args){
Sample s = new Sample(2,3);Console.WriteLine(s.getXY);
C. Compile-time errors
D. Run-time errors
Exit (19

Thông tin

Category
PRN292c
Thêm bởi
lanhoa86
Ngày thêm
Lượt xem
88
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN292c_-_FA_2023_-_1_1180.webp
File size
50.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom