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 the difference between abstract and virtual?
What do you mean by expression tree?
what are the contents of an assembly ?
What is the difference between var and dynamic types in c# 4.0?
Is null in c#?
What's the difference between System.String and System..StringBuilder in C#?
What is escape character in c#?
Why delegates are type safe in c#?
What is desktop example?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
What's your approach to fetch static data in your windows form application?
Where do we use serialization in c#?
Do loops c#?
What is lazy loading and eager loading in c#?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?