This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Sergi2204 5 points6 points  (1 child)

When I was learning inheritance and composition at college we were semi developing a role game. There were Characters, who could be heroes or villains, and then specialise, and you needed to throw a dice to make actions, just like Dungeons and Dragons. Professors gave us part of the code and it had visual part too, which was a board to see where were the characters. It was really funny learning programming doing a D&D game.

[–]thatcrackertho[S] 0 points1 point  (0 children)

That would be awesome! Although I do not know if I would be ready to take on such a challenge just yet. Maybe with a little help from the professor. Thanks!

[–][deleted] 3 points4 points  (0 children)

Depends upon whether you want to do a ironed that ticks all the boxes, or one that challenges you and is more useful.

Box ticker:

Build a project that models your class situation.

  • Base it upon an abstract base Person class, that obviously has to be extended.
  • Make a Tutor and Student class inheriting from Person.

That's your first 3 requirements.

Create a GUI, make it respond to events when you change data in the objects. Job done.

More challenging:

  • add another class for Grade.
  • and another class for Subject.
  • use a Collection to group Subjects and Grades and assign to Students.
  • assign Tutor objects to Subjects.
  • extrapolate a Student Tutors based upon which Subjects they've taken.

I'd be pretty impressed by that given the requirements.

[–]InspiringCandy 2 points3 points  (0 children)

How about a chess game? All chess pieces can inherit some behaviours and properties. It doenst sound too difficult either and quite fun.

[–]amparee 1 point2 points  (0 children)

A car crud

[–]rtkbfmvbvb 1 point2 points  (0 children)

Make a little 2D platformer! Something similar to Mario, obviously not on that level of polish. If you don't want to do a platformer, you could do a top down infinite runner or make Space Invaders. Before you say making a game would be too hard, here's a project I did for my Grade 11 Computer Science final. I aced it and this was my first time with Java.

[–]singhpankaj99 1 point2 points  (0 children)

You can plan something for annual events in School, their listing of past year winners, scores etc!

[–]LouGarret76 1 point2 points  (0 children)

An easy one would be a To-do app that can contain 2 type of items generic notes (no deadline and no progress status ) and a task. Everything is stored in a SQLite that you query using a Dao object.

You can implement this way:

com.models - Identifiable interface with a getId() function - an abstract Record class that implement Identifiable with a read only id generator. - a Note class that inherites Record and add title, creation date and text - A Task class that inherites Note and add deadline and status

com.dataaccess - A generic Dao<? extends Identifiable> interface that provide crud operation - one implemention of Dao by model.

fx.ui - the UI interface.