Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+16 votes

Did your team implement the favorite cards feature, how did you go about it? How did you save and retrieve the favorite cards?

asked in CSC305 Fall 2023 by (241 points)

8 Answers

+9 votes

When a card is selected as a favorite it writes its short code to a file, removes it if unfavorited. When the program boots up and the card objects are added, if the card is listed in the file, its favoriteStatus Boolean is set to true, otherwise it’s false by default. Works well enough, haven’t had any problems.

answered by (1 point)
+8 votes

My group's favorited cards get added to a file

answered by (2.2k points)
+7 votes

Mine was magnifying the image. the code was not too complex and did not need much refactoring and looked clean when i run it

answered by (2.5k points)
+7 votes

saving the favorite cards within the app directory, add loading it first in the window before any other card with a little heart on the bottom right

answered by (2.3k points)
+6 votes

The Card Pops Out when clicked on!

answered by (1 point)
+6 votes

We saved it in a file that we read and write to.

answered by (1 point)
+6 votes

We saved it to a csv file and each card object stored whether or not it is a favorite card.

answered by (3.8k points)
0 votes

I think every thing

answered by (1 point)