public class Time1 { private: int hour, int minute, int second; public: void Time1() { settime(0,0,0); } void Time1(h) { settime(h,0,0); } void Time1(h,m) { settime(h,m,0); } void Time1(h,m,s) { settime(h,m,s); } };
{"Image DocumentName": "POLYMORPHISM public class Time1 { private:", "Image ImageDescription": "int hour, int minute, int second; public: void Time1() { settime(0,0,0); } void Time1(h) { settime(h,0,0); } void Time1(h,m) { settime(h,m,0); } void Time1(h,m,s) { settime(h,m,s); } };", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}