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 A(){
Console.Write("1");
}
public virtual void Print() { Console.Write("2");
}
}
class B: A {
public override void Print() {
Console.Write("3");}
}
class Program{
static void Main(string[] args){A obj1 = new B();obj1.Print();Console.WriteLine();}
}
The output will be:

Thông tin

Category
PRN211
Thêm bởi
Dagon99
Ngày thêm
Lượt xem
1,330
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.2 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom