Open 7flash opened 2 years ago
What is the reasoning behing using struct instead of class when defining the contract?
https://github.com/gofractally/demo-clsdk/blob/578fe9310bbd1bc23a0a230b5ba322758604e6f1/depositspend.hpp#L58
In C++, the only difference between class and struct is that class defaults to private access and struct defaults to public. Everything is public in this contract.
class
struct
What is the reasoning behing using struct instead of class when defining the contract?
https://github.com/gofractally/demo-clsdk/blob/578fe9310bbd1bc23a0a230b5ba322758604e6f1/depositspend.hpp#L58