โค้ดยิม/หลักสูตรจาวา/จาวาคอร์/งานเกี่ยวกับการหล่อแบบ

งานเกี่ยวกับการหล่อแบบ

มีอยู่

“รู้ไหมว่าฉันคิดอะไร”

"นั่นอะไรน่ะเพื่อน"

“คุณเกือบถึงระดับของฉันแล้ว อีกไม่นานคุณก็จะสามารถเขียนโปรแกรมได้เอง”

“เอาจริงดิเอโก?”

“ไม่แน่นอน เจ้าปลากะพงขาว ฮ่าฮ่า เจ้ายังต้องเรียนรู้และเรียนรู้อีกมาก แต่อย่าบ่นนะ คิดออก!”

4
งาน
Java Core,  ระดับบทเรียน
ล็อค
Building and School
There are ordinary buildings, and there are school buildings. Make one inherit the other, and think about the type of object the getSchool and getBuilding methods should return. Change null to a Building or School object.
8
งาน
Java Core,  ระดับบทเรียน
ล็อค
Cats
Create an application for a cat census. First, ask the user to enter cat names. Then the program should create Cat objects with the appropriate names and display the result of cat.toString().
8
งาน
Java Core,  ระดับบทเรียน
ล็อค
Food
We will create a menu framework for restaurants, more precisely—a function for selecting food. First, we implement the Selectable interface in the Food class, and the onSelect() method, which should display "The food was selected". Think about which methods can be called with the variable food and which with the variable selectable.
4
งาน
Java Core,  ระดับบทเรียน
ล็อค
No mistakes
In this task, once again something is wrong. So you need to fix something. Specifically, set obj equal to an object that allows the main method to run error-free.
4
งาน
Java Core,  ระดับบทเรียน
ล็อค
Player and Dancer
On Planet Terra, practically every dancer or player is a human. The same is true in this incomplete program you have in front of you. Take a look at what it does already, and then change the haveFun method so that it calls the play method for players and the dance method for dancers.
ความคิดเห็น
  • เป็นที่นิยม
  • ใหม่
  • เก่า
คุณต้องลงชื่อเข้าใช้เพื่อแสดงความคิดเห็น
หน้านี้ยังไม่มีความคิดเห็นใด ๆ