Unlock the Power of Open Source! The " Linux New " SWAYAM Plus Course is live now and about 2,500 learners have already registered for it.

If you are a registered learner, the forum page is now active. Visit the page and get all your questions answered.

Creating object - Hindi

This is a sample video. To access the full content,
please Login

3812 visits



Outline:

ऑब्जेक्ट बनाना * ऑब्जेक्ट क्लास का एक instance है। *प्रत्येक ऑब्जेक्ट में state और behavior होते हैं। *ऑब्जेक्ट इसके स्टेट को फील्ड या वेरिएबल्स में संचित करता है। *यह इसका व्यवहार मेथड्स के माध्यम से दर्शाता है। *Reference वेरिएबल *TestStudent नामक क्लास बनाएँ। *Student क्लास का एक ऑब्जेक्ट बनाएँ। *नया ऑपरेटर का उपयोग करें। *जाँचें कि रिफ्रेंस वेरिएबल क्या करते हैं। * Student क्लास का एक अन्य ऑब्जेक्ट बनाएँ और जाँचें कि रिफ्रेंस वेरिएबल क्या करते हैं।