Search the Community
Showing results for tags 'instantiation'.
Found 1 result
OOPHP - instantiatiing a class from within another class
djt1975 posted a topic in PHP Coding HelpPlease see attached my bank account class files. The key guidance I need is how to instantiate a class from another class. For example, you can see in Customer.class.php, I instantiate a new Account, but am not sure how i pass in the balance and account number to Customer in order that they can instantiate the Account? This is the same as Account instantiate a BankCard object. I am a little confused - any help appreciated. BankAccountApp.zip