#include <iostream>
#include<cmath>
using namespace std;
class Dog{
public:
Dog();
Dog(int a,double w):age(a),weight(w)
{cout<<"Consyructor called"<<endl;}
void setDog(int a,double w){
age=a;
weight=w;
}
int geta(){return age;}
double getw(){return weight;}
~Dog()
{cout<<"Destructor called."<<endl;}
void display()
{cout<<age<<endl<<weight<<endl;}
private:
int age;double weight;
};
Dog::Dog()
{age=0;weight=0;}
int main()
{
Dog r(10,18.9);
r.display();
r.setDog(11,20);
cout<<r.geta()<<endl<<r.getw()<<endl;
return 0;
}