Buy Questpond's video subscriptions on
huge discount
.
Online: 1825
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Exclusive Interviews
>
C#
>
Post
|
Interview FAQs
|
Exclusive Interview Home
|
Interview Home
|
Search
Loading ...
class CA { } class CB : CA { } class Program { static void Main() { CA a = new CA(); CB b = a as CB; } } What happens of the this code is compiled
Posted by
deccansoft
on 9/20/2010 | Category:
C# Interview questions
| Views: 2568
Select from following answers:
Compilation Error
Runtime Exception
Neither of them
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous question :
Virtual Methods are
Next question > :
class CA { } class CB : CA { } class Program { sta ...
Comments or Responses
Login to post response
More Interview Questions
class CA { } class CB : CA { } class Program { static void Main() { CA ...
A reference variable of child can refer to an object of parent class T ...
A reference variable of type parent can refer to an object of child cl ...
Child class destructor always executes before parent class destructor ...
class CA { public int PubA; private int PriA; protected int ProA; publ ...
Protected members are accessible only within the class and in ________ ...
What is the advantage of inheritance
Can we use base and this in the same Constructor