fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class foo{
  5. public:
  6. static void bar(){
  7. std::cout<<"FooBar\n";
  8. };
  9. };
  10.  
  11. void bar(){
  12. std::cout<<"HelloBar\n";
  13. };
  14.  
  15. int main() {
  16. // your code goes here
  17. foo::bar();
  18. bar();
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
FooBar
HelloBar