PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
P

PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp

Inle Choices
Answer (Choose 1 answer)
class A
{ public void Print()=>Console.Write(".NET");
} class B: A
{
public new void Print()=>Console.Write("C#");
} class Program
{
static void Main(string[] args) {
B obj = new B():
}
obj.Print():A obj1 = new B():
obj1.Print():
Console.WriteLine():
} The output will be:
A. C#
B. An run-time exception will be thrown
C. C#.NET
D. NETC#

Q: 19

Thông tin

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

Image metadata

Filename
PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
File size
175.4 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom