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
Explain how do I get deterministic finalization in c#?
What is a property in c#?
What is this keyword in C#?
what is IFormatable
How does aspect oriented programming work?
What is a console device?
Different between method overriding and method overloading?
What is lazy keyword in c#?
In which way you can convert a value-type to a reference-type?
Can we use "this" command within a static method?
What is a console in c#?
I want to print "Hello" even before main() is executed. How will you achieve that?
Define delegate?
Explain About .Net remoting
What is the and operator in c#?