#include <iostream>
#include <string>
#include <sstream>
using namespace std;
class Bird{
public:
int A;
Bird(int Y){A = Y;}
int retrieve(){return A;}
} ;
int main(){
Bird * C =new Bird(6);
cout<< C.retrieve()<<endl;
return 0;
}
I can't access the object's retrieve() method which is pointed by C pointer(the object is pointed by C). Is there any way to do this . Please let me know.I use vscode V1.29.1