Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What will be the output of the program? using System; class CA { protected int M1 = 10; } class CB : CA { void

image text in transcribed

What will be the output of the program? using System; class CA { protected int M1 = 10; } class CB : CA { void Foo(). { CA a = new CA(); Console.WriteLine(a.M1); } } Compiletime error Runtime Error 10 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

Define Conventional Marketing.

Answered: 1 week ago

Question

Define Synchro Marketing.

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago