title: why same class file in eclipse not overwriting and showing error type already defined
body: <p>created a "java" class in eclipse, when try to use same class name in same package again it showing error "type already defined". when write program in notepad and running in command prompt it overwriting class and not showing error, why not overwriting when using eclipse, to overwrite what need to do.</p>