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
What is eager loading in c#?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
How to override a function in c#?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is Assembly. and Describe type of assembly. why most developer happy with private assembly.
Define satellite Assembly in .NET?
What language is c# similar to?
What is lazy class in c#?
What is activator c#?
Explain states of a thread in c#?
Why main method is static in c#?
What is event delegate in c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is dynamic dispatch?
What are winforms in c#?