摘要:
1.Whenever an object is created , memory wil be allocated for the instance variables also.They will be stored in the heap memory along with the object to which they belong2.Note :Here it is assumed that reference variable declaration is done inside the main() method,hence will be treated as a local 阅读全文
摘要:
1.Customer classsclass Customer{ private int customerId; private long telephoneNo; public void setCustomerId(int id){ cutomerId=id; } public void setTelephoneNo(long teleNo){ telephoneNo=teleNo; } public int getCustomerId(){ return customerId; } public long getTelephoneNo(){ return telephoneNo; }}2. 阅读全文
摘要:
Problem statementA retail application store wants to automate the system of purchase of items by customers and the billing process.The automation involves the maintenance of customers,purchase of items by customer and billing of items.Customers can be regular visitors to the store in which case they 阅读全文