Buy Questpond's video subscriptions on
huge discount
.
Online: 1851
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 CB(); //Is it valid or not? } }
Posted by
deccansoft
on 9/20/2010 | Category:
C# Interview questions
| Views: 2047
A reference variable of type parent can refer to an object of child
class because all the members which the reference variable can access
exist in memory when the object is of child class.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous question :
class CA { } class CB : CA { } class Program { sta ...
Next question > :
A reference variable of child can refer to an obje ...
Comments or Responses
Login to post response
More Interview Questions
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
What is the Order Of Execution of Destructors in Child and Parent Clas ...