|
-
Aug 14th, 2007, 01:37 PM
#1
Thread Starter
Hyperactive Member
[2.0] What modifier to use in class definition?
I have a class name "exportfilestatus" which currently has public scope.
I want to create an object of this class in some method and set the properties of this object.
If I don't want to return this object and if I still want to use the properties of the object, what modifier (public/shared/internal) should I use in the definition of "exportfilestatus" class?
Code:
public class exportfilestatus
{
private double _currGroupBalance;
public double CurrGroupBalance
{
get { return _currGroupBalance; }
set { _currGroupBalance = value; }
}
}
thanks
nath
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|