I have a class declared as below
public class a
{
public void add()
{}
}
What is the diference between
a a1 =new a;
and simply
a a1;
Answer Posted / rahul maurya
in a a1=new a memory is allocated to the main function to execute
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Why is .net so popular?
Differentiate between response.expires and response.expiresabsolute?
What is join in c#?
the c# keyword .int. Maps to which .net type?
What is a shared assembly?
write a c# program add two matrix with input number ?
Is c# and c sharp same?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
Is namespace a class?
What is difference between mutable and immutable in c#?
What is ac callback?
What are scriptable objects?
How do you access a constant field declared in a class?
Give examples for value types?
What is difference between struct and class in c#?