Code:
#include <iostream>
using namespace std;

class B
{
public:
    int value;
     B(){ 
        value = 10; 
     }
    ~B(){ 
    }
    void funcB(){
        value = 135;
    }
};


class A
{
public:
    A() {
        B* objB1 = new B;
        cout << "Print inside A class == " << objB1->value << endl;
    }
    ~A() {}
};


int main()
{
    B* objB = new B;
    objB->funcB();
    A* objA = new A;
    return 0;
}
Hello Everybody, Once I print the objB1->value inside of "A" class, It always provide the output 10 regardless of 135. Why?