Shows how to use xtd::static class.
#include <xtd/console>
#include <xtd/static>
namespace static_object2_example {
public:
static string to_string() {return "program";}
};
}
auto main() -> int {
console::write_line(static_object2_example::program::to_string());
}
Represent a static object. A static class can't be instantiated (constructors are deleted).
Definition static.hpp:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10