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 collection types can be used in c#?

872


is it possible to access a remote web service Without UDDI?

1009


Is c# an array?

894


4. Describe the process when we send a request URL? And who is responsible for that?

1982


Is post back c#?

923


Does c# have a 'throws' clause?

1012


Explain about CTS?

949


How can we sort the elements of the array in descending order?

937


What is a collection class in c#?

909


Which function is the entry point for a DLL in MS Windows 3.1?

1169


What are the Features in .net framework 1.1

986


Can hashtable have duplicate keys in c#?

889


Why to use “finally” block in c#?

1092


Which framework is best for desktop application?

995


What is an assembly qualified name? Is it a filename? How is it different?

940