Thread: parent/child
View Single Post
Join Date: May 2007
Posts: 4,346
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 498
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: parent/child

 
0
  #4
Oct 30th, 2007
Originally Posted by ceyesuma View Post
I will go thru and add comments I guess. If you were to run the program.creditcard processes work and debit card uses creditcard"
  1. public DebitCard{
  2. super();
  3. }
but when I try the same process using DebitCard all the variables remain set for creditcard.
well thanks any way. I'll work on it some more.
Do you actually create a DebitCard object to perform the operations on? It sounds like you are still calling methods against a CreditCard object.

You should consider trying to use full, descriptive names for your variables and methods, rather than cryptic abbreviations. I thought this was touched on in the coding conventions, but looking back I don't see it and must be thinking of a different document. Clear names that spell out the intent of a variable or method will help not only other readers of your code, but you as well. It's much easier to organize your thoughts when the intent of the code is clearly spelled out by variables and methods.
Reply With Quote