PageRenderTime 5ms CodeModel.GetById 3ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/tutorial/external/C++/Bar.h

http://github.com/tybor/Liberty
C++ Header | 23 lines | 12 code | 10 blank | 1 comment | 0 complexity | 58c29522e06c7e6e19bf7f057179dce1 MD5 | raw file
 1// Basic C++ class to test the Liberty Eiffel C++ interface
 2class Bar {
 3
 4public:
 5
 6  char character_attribute;
 7
 8  double double_attribute;
 9
10  Bar (char c) {
11    character_attribute = c;
12  }
13
14  char get_character ();
15
16  double get_double ();
17
18  static void do_print (int i);
19
20  static char do_print_and_return (int i);
21
22};
23