"मैं देख सकता हूँ कि आप पहले ही आराम कर चुके हैं। बहुत बढ़िया! यहाँ कंस्ट्रक्टर बनाने का अभ्यास करने के लिए कुछ कार्य दिए गए हैं:"

2
टास्क
Java Syntax,  स्तर 5सबक 9
लॉक
You can't buy friends
In English, "to make friends" simply means "to get to know someone else and establish a friendship". It doesn't make to "make" or "create" someone. But I must say, it does sound like something is being built. Let's take this idiom from English into Java: We'll make a Friend class with three constructors. The first constructor will take a name. The second will also take an age. And the third will also take a gender.
4
टास्क
Java Syntax,  स्तर 5सबक 9
लॉक
Creating cats
Create valid cats in an unnatural way: using constructors. Let's create a Cat class and declare five different constructors. The simplest constructor contains one parameter: name. The next has name and age. And we'll add weight to the third. Read about the rest in the task conditions.