PRN211_-_SU_2024_-_RE_2505.webp
golden_swallow

PRN211_-_SU_2024_-_RE_2505.webp

Kizspy | Question: 27
(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

Thông tin

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

Share this media

Back
Bên trên Bottom