Here,... this should help.
class Foo : public Bar
{
public:
Foo(int aValue);
~Foo();
int CallFoo(intaValue);
int Value();
static (foo *)MakeFoo(int aValue);
private:
int myVariable;
int value;
}
Bar
{
int myVariable;
int value;
}
+(Foo *)MakeFoo
int)aValue;
-initFoo
int)aValue;
- free;
- (int)callFoo
int)aValue;
- (int)value;
intfoo::callFoo(int foo)
{
int count;
int result = 0;
HelperObject object;
for (count = 0; count < foo; count++)
result += object.Value(count);
return result;
}
intcallFoo
int)foo
{
int count;
int result = 0;
HelperObject *anObject = [[HelperObject alloc] init];
for (count = 0; count < foo; count++)
result += [anObject value:count];
[anObject free];
return result;
}
class foo
{
public:
int foo(char *fooValue, int number);
int foo(char *fooValue, char *string);
};
(char *)fooValue byInt
int)number;
- (int)fooByString
char *)fooValuebyString:string;
class ListLocker
{
private:
List *aList;
public:
ListLocker(List *aList) {theList = aList; [theList lock];}
~ListLocker() {[theList unlock];}
};
- (void)objectiveCMethod
List *)myList
{
ListLocker lock(myList);
[myList doSomething];
}
If this does not help you then I would suggest that you ask this question on a forum that deals with Programming,.. and not TATTOOS !!!!