OO: Chat Application
Posted: Thu Aug 04, 2005 2:10 pm
I was quite confident to create a chat application and then I felt that I should develop the application with OO features.
Then lots of doubts have come up and I will ask a few here
I have got two classes in place now:
class Users
class Messages
1. Do I have to create a separate class for object persistance? for more clarity, I am asking whether I have to create a new class which will persist into the database not the 'Users' class or I can create a simple function which will persist user details.
2. How to loop the 'Messages' class to display all messages?
Then lots of doubts have come up and I will ask a few here
I have got two classes in place now:
class Users
class Messages
1. Do I have to create a separate class for object persistance? for more clarity, I am asking whether I have to create a new class which will persist into the database not the 'Users' class or I can create a simple function which will persist user details.
2. How to loop the 'Messages' class to display all messages?