kyle2005 Posted March 28, 2006 Share Posted March 28, 2006 Hi all,I am new to the class business and would like to find out how I will be able to do the following.Let’s say my class structure looks as follows.account.phpaccount/make.phpaccount/del.phpaccount/edit.phpaccount/login.phpaccount/logout.phpAnd I have a main class called account { } And each time I need to make a new account I just use the acc_make extend accountBut how does that work.Any one with time that might have a site that explains this or any help would be nice.Thanks Quote Link to comment Share on other sites More sharing options...
ober Posted March 28, 2006 Share Posted March 28, 2006 I haven't dealt with extending, so you might just have to ignore my answer (and maybe explain your class a little better)... but why wouldn't you just create a new instance of the class for a new account? Quote Link to comment Share on other sites More sharing options...
kyle2005 Posted March 28, 2006 Author Share Posted March 28, 2006 That is one way of doing it,But I am sort off trying to do what the pear packages are doing, with the extend. Quote Link to comment Share on other sites More sharing options...
trq Posted March 28, 2006 Share Posted March 28, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]But I am sort off trying to do what the pear packages are doing, with the extend.[/quote]Why?I meen really... If you dont understand OOP concepts, then just trying to do something without understanding the why wont help.Id'e recommend googling for the book [i]thinking in java[/i]. It is a great resource for learning OOP concepts, and java's syntax really isn't too far removed from php's. Quote Link to comment Share on other sites More sharing options...
kyle2005 Posted March 29, 2006 Author Share Posted March 29, 2006 Thank you,Now that’s a step in the right direction. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.