@Naveen

---Sample --Singleton Pattern -- View ---
---Edited---
*--Invoice.class
*---change access level of no-parameter constructor to private
*---declared a private static Invoice 'VInvoice' variable
*---implemented public static Invoice getInstance() method "return type
- class object -Invoice

*--main.class
*---Invoice button --