"ฉันเห็นว่าคุณได้พักผ่อนแล้ว เยี่ยมมาก! ต่อไปนี้เป็นภารกิจบางส่วนในการฝึกสร้างคอนสตรัคเตอร์:"

2
งาน
Java Syntax,  ระดับบทเรียน
ล็อค
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,  ระดับบทเรียน
ล็อค
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.