1.2

#include <iostream>
#include <typeinfo>
using namespace std;
class Base {
	virtual void f() {}; // Asos sinf uchun polimorf 
	// . . .
};
class myClass_one : public Base {
	// . . .
};
class myClass_two : public Base {
	// ...
};
int main() {
	Base* p, baseob;
	myClass_one ob1;
	myClass_two ob2;
	p = &baseob;
	cout << " O'zgaruvchi p tipdagi obyektga ishora: ";
	cout << typeid(*p).name() << endl;
	p = &ob1;
	cout << " O'zgaruvchi p tipdagi obyektga ishora: ";
	cout << typeid(*p).name() << endl;
	p = &ob2;
	cout << " O'zgaruvchi p tipdagi obyektga ishora: ";
	cout << typeid(*p).name() << endl;
	system("pause");
	return 0;
}
Run on cpp.sh