How do you override a method?
Answer / Shah Faisal Khan
To override a method in Java, you need to create a subclass and provide an implementation for the method you want to override. The overridden method should have the same return type, method name, and parameter list as the original method in the superclass.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types
please send code example of inner classes?
What is variable argument in java?
What does ide stand for?
What function extracts specified characters from a string?
what is diffrence between .NET and java?
Is object a data type?
What is the length of a string?
Differentiate between a class and an object.
Are arrays passed by reference in java?
What is the default access specifier for variables and methods of a class?
Is math an abstract class in java?