OVERLOADING POSTEST 2
Overloading adalah operator pengganti perintah didalamnya terdapat konstruktor #include <iostream> using namespace std; class lingkaran{ friend ostream& operator<< (ostream&,lingkaran&); friend istream& operator >> (istream&,lingkaran&); public: lingkaran(){ r = 0; phi = 3.14; l = 0; } float luas(){ l=phi*r*r; return l; } private : int r; float phi,l; }; ostream& operator <<(ostream& hayabusa, lingkaran& lingk){ hayabusa<<"jari jari = :"<<lingk.r<<endl; hayabusa<<"luas lingkaran : "<<lingk.luas()<<endl; } istream& operator >>(istream& miya, lingkaran& aran){ cout<<"masukan jari jari = "; miya>>aran.r; return miya; } class tabung{ friend ostream& operator<< (ostream&,tabung&); friend istream& operator >> (istream&,t...