"Saya dapat lihat anda sudah berehat. Hebat! Berikut ialah beberapa tugasan untuk berlatih mencipta pembina:"

2
Tugasan
Java Syntax,  tahappelajaran
Terkunci
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
Tugasan
Java Syntax,  tahappelajaran
Terkunci
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.