PRN211_-_REB5_-_FA_2023_1324.webp
B

PRN211_-_REB5_-_FA_2023_1324.webp

Answer (Choose 1 answer)
abstract class A
{ protected int x;
public A()
{ x = 2;
}
public virtual void Print()
Console.Write(x*x);
}
}
class B: A
{
}
public B()
x = 3;
}
public void Print()
{ Console.Write(x);
}
class Program
{
static void Main(string[] args)
{
A obj1 = new B();obj1.Print();
Console.WriteLine();
3

Exit 48

Thông tin

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

Image metadata

Filename
PRN211_-_REB5_-_FA_2023_1324.webp
File size
50 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom