This site requires JavaScript, please enable it in your browser!
Greenfoot back
Professorhafeez
Professorhafeez wrote ...

2021/12/15

Need to differentiate Super class and subclass

Professorhafeez Professorhafeez

2021/12/15

#
World 「 Greenworld World 「 West 「 East
danpost danpost

2021/12/15

#
East should not extend West. It should extend World ?? or Greenworld? Extending a class means that the newly described objects that the new class creates will be of the same type. When you extends World, you will describe a new type of World. If East extends West, you are saying that an East world IS a West world.
You need to login to post a reply.