/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
  2. class Bar {
  3. public:
  4. char character_attribute;
  5. double double_attribute;
  6. Bar (char c) {
  7. character_attribute = c;
  8. }
  9. char get_character ();
  10. double get_double ();
  11. static void do_print (int i);
  12. static char do_print_and_return (int i);
  13. };