This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class C | |
| { | |
| public: | |
| inline float convert(float kg) | |
| { | |
| return 2.205*kg; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class overload | |
| { | |
| public: | |
| void area(float r) | |
| { | |
| cout<<"Area is:"<<3.14*r*r<<endl; | |
| } |
NewerOlder