#include &lt;iostream&gt;    using namespace std;    class number    &#123;        int i;        public:        int geti&#40;&#41;;        void puti&#40;int j&#41;;    &#125;;    int number::geti&#40;&#41;    &#123;        return i;    &#125;    void number::puti&#40;int j&#41;    &#123;        i = j;    &#125;    int main&#40;&#41;    &#123;        number s;        s.puti&#40;10&#41;;        cout &lt;&lt; s.geti&#40; &#41;;        return 0;    &#125;
A. 10
B. 11
C. 20
D. 22
Answer:A
#include &lt;iostream&gt;    using namespace std;    class number    &#123;        int i;        public:        int geti&#40;&#41;;        void puti&#40;int j&#41;;    &#125;;    int number::geti&#40;&#41;    &#123;        return i;    &#125;    void number::puti&#40;int j&#41;    &#123;        i = j;    &#125;    int main&#40;&#41;    &#123;        number s;        s.puti&#40;10&#41;;        cout &lt;&lt; s.geti&#40; &#41;;        return 0;    &#125;
A. 10 B. 11 C. 20 D. 22
Explanation:We are getting the number and copying it to j and printing it.