0

```
#include <iostream>
using namespace std;
class fibonacci
{
private:
int num;
public:
long fibNum(int n);
fibArr();
};
//============================
long fibonacci::fibNum(int n)
{
n=num;
if (n<0) { return 0; }
if (n<2) { return n; }
else { return fibNum(n-1) + fibNum(n-2); }
}
//============================
fibonacci::fibArr()
{
int *Arr;
Arr=new int[num];
for (int i=0; i<num; i++)
{
Arr[i]=fibNum(i);
cout<< Arr[i] << " ";
}
}
//============================
//============================
int main()
{
fibonacci fibo;
fibo.fibNum(10);
fibo.fibArr();
return 0;
}
```

works, but doesn't return any values as supposed. What would need to be changed?