Untitled
plain_text
17 days ago
283 B
2
Indexable
Never
#include <iostream> using namespce std; class sample{ public: static int a; static void getdata() { cout<<a<<endl; } }; int sample :: a=10; int main() { sample s; cout<<sample::getdata()<<endl; sample::a=100; cout<<sample::getdata<<endl; }