T
thomas.heggelund
If I have a class like this one:
class test {
private:
int test_integer1;
int test_integer2;
public:
test(int first, int second) {
this->test_integer1 = first;
this->test_integer2 = second;
}
static int test_function(test * ptr);
}
If I call test::test_function with a pointer to a test class, would the
function be able to access test_integer1 and test_integer2??
let's say that test_function is something like this:
int test::test_function(test * ptr) {
return ptr->test_interger1 + ptr_test_integer2;
}
Is this possible?
class test {
private:
int test_integer1;
int test_integer2;
public:
test(int first, int second) {
this->test_integer1 = first;
this->test_integer2 = second;
}
static int test_function(test * ptr);
}
If I call test::test_function with a pointer to a test class, would the
function be able to access test_integer1 and test_integer2??
let's say that test_function is something like this:
int test::test_function(test * ptr) {
return ptr->test_interger1 + ptr_test_integer2;
}
Is this possible?