2. I've a class Parent Class A and a Derived Class B. Here
is a scenario.
I've an instance of Class A as objA and an instance of Class
B as objB.

I can refer a child class variable as objB=objA, but
cannot do objA=objB what is the reason?



Answer Posted / gopal

Here ObjA is Base Class and ObjB is Derived Class.
In Inheritence Process Derived class Will get the all
features of Base Class.
because objB=O=objA Is COrrect

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens to the winfx technologies?

583


What re interop services?

570


What is the mesi? : Dot net architecture

555


How to improve the cache performance? : .NET Architecture

564


Can I customise the trace output?

655






Explain about generation?

579


Difference between throw exception and rethrowing ?

1677


Whats new features in Visual Studio 2012?

557


I want to create a project like google maps how can we do that with atlas?

490


What do you know about machine.config file ?

574


How cache is used? : Dot net architecture

506


Explain cache memory? : Dot net architecture

544


What is the problem with .net generics?

616


Explain pipelining? : .NET Architecture

556


Explain what does the term "green architecture" mean? : Dot net architecture

567