PRN211_-_SU_2024_-_RE_2505.webp
golden_swallow

PRN211_-_SU_2024_-_RE_2505.webp

Kizspy | Question: 25
(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();
Cons }

Thông tin

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

Share this media

Back
Bên trên Bottom