Access public class member from other class
Suppose, i have 2 classes
public class A
{
public string s1;
}
public class B
{
}
Is there anyway to use string 's1' from class A in class B ?
My conditions are:
- " string s1 " is non-static variable. ( just public )
- In class B, i will not use " A a = new A(); a.s1 = "hello"; "
to access string s1. (not new it).
mibuytPosted Mar 14, 2005, 7:52 PM
MykoninePosted Mar 14, 2005, 11:33 AM
mibuytPosted Mar 14, 2005, 10:10 AM
hellopeatPosted Mar 14, 2005, 9:49 AM
mibuytPosted Mar 14, 2005, 9:46 AM