PRN211_-_FE_-_SU_2023_441.webp
D

PRN211_-_FE_-_SU_2023_441.webp

  • Media owner Dagon99
  • Ngày thêm
(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();
A obj1 = new B();
obj1.Print();
Console.WriteLine();
}
}
The output will be:
A. C#.NET

Thông tin

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

Image metadata

Filename
PRN211_-_FE_-_SU_2023_441.webp
File size
42.4 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom