Login Register


Applets Doubt ?? filter_list
Author
Message
Applets Doubt ?? #1
I am working on a simple project which I will post here very soon. However I need to know that why some highlights are being shown to me to "Add @override" for the following methods

public void start(){

}

public void run(){

}
[Image: OilyCostlyEwe.gif]


Applets Doubt ?? #2
I am working on a simple project which I will post here very soon. However I need to know that why some highlights are being shown to me to "Add @override" for the following methods

public void start(){

}

public void run(){

}
[Image: OilyCostlyEwe.gif]


RE: Applets Doubt ?? #3
Because you override the methods inherited from Applet. The annotation is an information for the programmer as well as for the compiler. If you add @Override to a method that doesn't override anything, the compiler will complain.

Other languages like C# have an override modifier instead that serves the same purpose.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]


RE: Applets Doubt ?? #4
Because you override the methods inherited from Applet. The annotation is an information for the programmer as well as for the compiler. If you add @Override to a method that doesn't override anything, the compiler will complain.

Other languages like C# have an override modifier instead that serves the same purpose.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]


RE: Applets Doubt ?? #5
(05-18-2013, 01:21 PM)Deque Wrote: Because you override the methods inherited from Applet. The annotation is an information for the programmer as well as for the compiler. If you add @Override to a method that doesn't override anything, the compiler will complain.

Other languages like C# have an override modifier instead that serves the same purpose.

Okay I got it and I have done with the little project too. So you can close this thread, my doubts are clear now.

http://www.hackcommunity.com/Thread-Java...ed-in-Java
[Image: OilyCostlyEwe.gif]


RE: Applets Doubt ?? #6
(05-18-2013, 01:21 PM)Deque Wrote: Because you override the methods inherited from Applet. The annotation is an information for the programmer as well as for the compiler. If you add @Override to a method that doesn't override anything, the compiler will complain.

Other languages like C# have an override modifier instead that serves the same purpose.

Okay I got it and I have done with the little project too. So you can close this thread, my doubts are clear now.

http://www.hackcommunity.com/Thread-Java...ed-in-Java
[Image: OilyCostlyEwe.gif]


RE: Applets Doubt ?? #7
-closed as requested-
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]


RE: Applets Doubt ?? #8
-closed as requested-
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]








Users browsing this thread: