including class???

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: including class???

 
0
  #11
Feb 7th, 2008
thats what I keep telling u4umang2001. Here look at this good tutorial u4umang2001.

http://www.codersource.net/csharp_tu...amespaces.html
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

 
0
  #12
Feb 7th, 2008
i have done that also...



but now how to call the function?
Thanks & Regards
Umang
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: including class???

 
0
  #13
Feb 7th, 2008
You call it the same way. This just means that those classes are related so you can call them like they are one giant class.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

 
0
  #14
Feb 7th, 2008
see:::::

==class1 code==
namespace ns1
{
public class c1
{
public c1()
{
}

public void c1f1()
{
console.write("namespace example");
}
}

==class 2 code==

using ns1;

public class c2
{
public c2()
{
}

public void c2f1()
{
==here i want to call c1f1==
}
}


???where i m missing/worng???
Thanks & Regards
Umang
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

 
0
  #15
Feb 7th, 2008
see:::::

==class1 code==
namespace ns1
{
public class c1
{
public c1()
{
}

public void c1f1()
{
console.write("namespace example");
}
}
}

==class 2 code==

using ns1;

public class c2
{
public c2()
{
}

public void c2f1()
{
==here i want to call c1f1==
}
}



??? how can i call ???
wht statement should i write here
Thanks & Regards
Umang
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: including class???

 
0
  #16
Feb 7th, 2008
use "new c1f1()"
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

 
0
  #17
Feb 7th, 2008
if i ll use "new c1f1()"

then wht is the benefit of defining the namespace???

it could be done without defining a namespace...
Thanks & Regards
Umang
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC