PRN211_-_RE_-_SU_2023_572.webp
Erza_girl

PRN211_-_RE_-_SU_2023_572.webp

Answer (Choose 1 answer)
class A
{ public void Print()=>Console.Write(".NET");
}
class B: A
{
}
public new void Print()=>Console.Write("C#");
class Program
{
static void Main(string[] args) {
B obj = new B();
obj.Print();Aobj1 = new B();
obj1.Print();
Console.WriteLine();
}
}
The output will be:
A. C#.NET
B. NETC#
C. C#
D. An run-time exception will be thrown

Exit (31

Thông tin

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

Image metadata

Filename
PRN211_-_RE_-_SU_2023_572.webp
File size
51.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom