+ 1
Can one same package may have two classes of same name.....if we can have then which will execute first?????
I tried this but when I write these 2 same classes then the class which I write at last is only executed...first one is not....
4 ответов
+ 10
Yes, programs are read from beginning to end so only last class is kept……
+ 9
This is called "@Override"……
+ 1
methods can be overridden.... but can class can override......coz my ques is about classes
+ 1
thanks..