PRN292c_-_FA_2023_-_2_1241.webp
M

PRN292c_-_FA_2023_-_2_1241.webp

49
Answer (Choose 1 answer)
What is the output of the following code?
public class A
{
public virtual void Talk() { Console.WriteLine("A ");
}
}
public class B: A
public override void Talk(){
Console.WriteLine("B ");
}
}
public class C: B
public class Program
static void Main(string[] args)
A C1 = new C();C1.Talk();
Console.ReadLine();
}
}
A. B
B. A
C. AB
D. This code will raise an exception since class C is not overriding the Talk() method.

Elt

Thông tin

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

Image metadata

Filename
PRN292c_-_FA_2023_-_2_1241.webp
File size
71.4 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom