-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ArvindSingh
Message 1 in Discussion
Hi All
I'm preparing for MCSD. I was randomly going
thru sample questions provided at the end of a chapter of a book.
I'm shocked with the answer for this
Q!
Q : Whats the output ?
class Test1
{
public
Test1()
{ Console.WriteLine("1a"); }
public
Test1(int num)
{ Console.WriteLine("1b"); }
}
class Test2
{
public
Test2() : base(100) { }
public
Test2(int num) : base() { }
}
class Class1
{
static void
Main(string[] args)
{ Test2 t = new
Test2(1000); }
}
options :
A. Prints 1a
B. Prints 1b
C. It does not compile
D. it does not run
Correct Answer:
A. The derived class constructor that takes
an integer makes a calls to the empty parameter base constructor that prints
"1a".
Most of you will know where the bug is. Thats
not the intention of this mail.
The point is that there is a lot of material for
MCSD and other exams out in the market. We should be careful what we
refer.
Therefore, anyone in this group who has successfully
completed MCSD.NET , must be able to provide pointers to good study material (
either soft or hard material)... just pointers will do :) ...
What say group?
btw.... I'm so far referring to only one book and its
called (OSBORNE - McGrawHill) Learn Key
something.....
AP
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]