There are a class A. Another class B derived from it.
Now if I do A a = new B(); and B b = new B(); What will
happen in both the statements. And what is the difference
between these two statements.
Answer Posted / srushtitha.
here,A is Base class, B is Derived class.
in the first statement "the object of B is stored in parent
clss reference"(Runtime Polymorphism).
-->In the secend statement "the object is creacted for the
child class.
| Is This Answer Correct ? | 23 Yes | 3 No |
Post New Answer View All Answers
hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......
What is a method c#?
Why do we need structs in c#?
What are custom exceptions?
Which types of inheritances does c# support?
What problem does Delegate Solve?
Is c# code is managed or unmanaged code?
What is type keyword in c#?
How do you create dlls in .NET
What is c# in asp net?
What is the difference between firstordefault and singleordefault?
What is uint64?
What the different phase/steps of acquiring a proxy object in webservice?
Is datetime value type c#?
Is c# strongly typed?