List Info

Thread: object creation




object creation
country flaguser name
United States
2007-02-28 07:03:10
Is there any difference between the creation of objA and
objB in the
code below

public class MyClass
	{
		private object objA = new object();
		private object objB;
		public MyClass()
		{
			objB = new object();
		}
	}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: object creation
country flaguser name
United States
2007-03-03 04:44:48

Hi
objB in aviliable after :
 MyClass   MyClassObj=New MyClass();
but
objA aviliable in MyClass.objA;


On Feb 28, 4:03 pm, "aravind" <aravindgn...gmail.com> wrote:
> Is there any difference between the creation of objA
and objB in the
> code below
>
> public class MyClass
>         {
>                 private object objA = new object();
>                 private object objB;
>                 public MyClass()
>                 {
>                         objB = new object();
>                 }
>         }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )