A1METALHEAD
Programmer
well, i know c++, and i was wondering if it is possable to make a class obusly this:
class aClass
{
public:
aClass(int iniInt){ theInt=iniInt; }
aClass(){ theInt=10; }
int getInt(){ return theInt; }
void changeInt(int newInt){ theInt=newInt; }
private:
int theInt;
};
wont work, nomatter where i put it. i have tryed sustiting the
Public:
bla bla bla
with a public before each method, but that still dosent work. is there anyway to make a class in c sharp?
class aClass
{
public:
aClass(int iniInt){ theInt=iniInt; }
aClass(){ theInt=10; }
int getInt(){ return theInt; }
void changeInt(int newInt){ theInt=newInt; }
private:
int theInt;
};
wont work, nomatter where i put it. i have tryed sustiting the
Public:
bla bla bla
with a public before each method, but that still dosent work. is there anyway to make a class in c sharp?