Results 1 to 2 of 2

Thread: Can we change signature of method while overriding methods??

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    1

    Can we change signature of method while overriding methods??

    in Interview i got this question. When i said, NO interviewer was not agree with my opinion.... So i want to know is there any way to change signature in overridding?


  2. #2
    Junior Member
    Join Date
    Jan 2007
    Answers
    2

    Re: Can we change signature of method while overriding methods??

    An instance method in a subclass with the same signature (name, plus the number and the type of its parameters) and return type as an instance method in the superclass overrides the superclass's method

    for more see following URI

    http://java.sun.com/docs/books/tutor.../override.html


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact