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
Is ram a heap?
How can we set class to be inherited, but prevent the method from being over-ridden?
Difference between debug.write and trace.write?
What is sql transaction in c#?
What is the difference between inheritance and abstract class?
Give an example of a directcast.
What are most desktop applications written in?
What are the problem with .NET generics?
Why do we use threads in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
How do you concatenate in c#?
Is int an object in c#?
What is a console file?
What is difference between abstraction and encapsulation in c#?
What is assembly c#?