fork download
  1. #include<string>
  2. #include<iostream>
  3.  
  4. using std::string;
  5. using namespace std;
  6.  
  7. class Connection {
  8. public:
  9. Connection();
  10. string conexao;
  11. void getConexao();
  12. };
  13.  
  14. Connection::Connection() {
  15. conexao = "sete de setembro";
  16. }
  17.  
  18. void Connection::getConexao() {
  19. cout << conexao << endl;
  20. }
  21.  
  22. int main(void) {
  23. Connection con;
  24. con.getConexao();
  25. return 0;
  26. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
sete de setembro