PRN211_-_RE_-_SU_2023_572.webp
Erza_girl

PRN211_-_RE_-_SU_2023_572.webp

(Choose 1 answer)
class A{
public void Print(){
Console.Write("1");
}
} class B: A {
public new void Print(){Console.Write("2");
}
} class Program{
static void Main(string[] args){
A obj1 = new B();
obj1.Print();
Console.WriteLine();
}
}
The output will be:
A. 1
B. 2
C. 12
D. 21

Exit 23

Thông tin

Category
PRN211
Thêm bởi
Erza_girl
Ngày thêm
Lượt xem
1,000
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
47.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom