Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / pritam kumar

in a a1
It only declares an object a1 of class a but no memory is
allocted to execute the main method

where as in a a1 = new a

It declares an object and also intiate it using the new key
word.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two uses of a ‘using’ statement in c#?

962


what is scope of a protected internal member variable of a c# class

1012


What is gac? How to put assembly in gac?

998


Describe an interface class?

1076


How will you deploy the dll file in gac?

941


What are the properties of string?

957


Can you access a hidden base class method in the derived class?

918


Explain About remoting and web services. Difference between them

953


Is unboxing an implicit conversion?

1026


What to implement on my class Finalize or IDisposable

979


Is c# code is unmanaged or managed code?

1111


What is the difference between dll and lib?

989


What do you know about device context?

947


What is jagged array in c#?

1120


Distinguish between continue and break statement?

1092