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.

Using this keyword - Sanskrit

943 visits



Outline:

स्थूलविवरणम् this keyword अस्य उपयोगः *this इतीदं current object अस्य प्रतिनिधिः । *नाम्नि विद्यमानस्य संशयपरिहारार्थमिदं उपकारी । * this keyword इतीदं एकस्मिन् constructor मध्ये अन्यदेक call कर्त्ं उपकारी । * constructor इमानि समाने class मध्ये भवेत् । *explicit constructor invocation(एक्स्प्लिसिट् कन्स्ट्रक्तर् इन्वोकेशन्) * parameterized constructor code उपयुज्य अस्य विवरणम् । *निरूपकमिदं constructor अस्यान्ते करणम् । *दॊषसम्भवः । *this statement इतीदं constructor मध्ये प्रथमं निरूपकमेव भवितव्यम् ।