I think it would be smart for you to buy a book and study the basics of object oriented programming in Java. Your question contains so many wrong assumptions that it is impossible to answer.