Its my first Object Oriented Program(I have been programming in C).I have to make a program which marks the attendance of the user when he signs in to the software.
Here is some details of the program:
The program starts and asks the user
to enter his ID and password.If the
user has entered the correct
password,the program automatically
marks his attendance and shows him
options to view to calender,history of
his attendance.
Now I want to decide what classes should I make and what features should I bind with them.Please help me out.If I lack something regarding the details please let me know.
Thanks
At first glance, you’d find the following classes useful:
Student: Each user object should have a username and a password, and a way to validate an entered password. This might look like:
Course: Each course should have a list of dates the course will be held.
You’ll need a place to track whether a particular student showed up. I’d put this in the Course as well: each Course will need a list of students enrolled, and a way to track which students showed up on which days.
You don’t need anything more to display a calendar, as you have all the data necessary. The Course has the dates it is held, and whether a particular student showed up each day.