Learning OOP
Posted: Thu Jan 17, 2008 8:25 am
Hi to all!
I'm studying the OOP programming with PHP4. I'd like to understand better this new way to program...
For instance, I'd like to create an application to manage a school.
So, I have:
- courses
- each course has many school matters
- each school matter has teachers/tutors
- each teacher/tutor has a name, a surname, etc...
I'd like that my application could generate:
- report about activities (stats)
- modules filled out with the saved data
How I can translate this problem in an object oriented code?
Hyphothesys:
a class "login"
a class to insert/modify/delete a course
a class to insert/modify/delete a school matter (extension of "course")
a class to manage people (extension of "course")
a class to generate documents
a class "research"
What do you think? Someone can help me to understand better this problem?
ciao!
I'm studying the OOP programming with PHP4. I'd like to understand better this new way to program...
For instance, I'd like to create an application to manage a school.
So, I have:
- courses
- each course has many school matters
- each school matter has teachers/tutors
- each teacher/tutor has a name, a surname, etc...
I'd like that my application could generate:
- report about activities (stats)
- modules filled out with the saved data
How I can translate this problem in an object oriented code?
Hyphothesys:
a class "login"
a class to insert/modify/delete a course
a class to insert/modify/delete a school matter (extension of "course")
a class to manage people (extension of "course")
a class to generate documents
a class "research"
What do you think? Someone can help me to understand better this problem?
ciao!