class Solution(): def __init__(self, x): self.params = x def func(self): print(self.params)
c++
class Solution{ public: Solution(int i){ cout << i << endl; } bool printss(){ return true; } }; int main() { Solution s(10); cout << s.printss(); return 0; }