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


Please Help Members By Posting Answers For Below Questions

Is ram a heap?

592


How can we set class to be inherited, but prevent the method from being over-ridden?

635


Difference between debug.write and trace.write?

614


What is sql transaction in c#?

574


What is the difference between inheritance and abstract class?

535






Give an example of a directcast.

592


What are most desktop applications written in?

569


What are the problem with .NET generics?

638


Why do we use threads in c#?

611


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?

585


How do you concatenate in c#?

566


Is int an object in c#?

595


What is a console file?

575


What is difference between abstraction and encapsulation in c#?

618


What is assembly c#?

559