logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the use of overriding?


  • Correct Answer
  • - By using method overriding a sub class can change the definition of super class method - By using overriding a sub class can modify the functionality of the super class 


  • Technology problems


    Search Results


    • 1. If super class ref is pointing sub class object then by using super class ref is it possible to call sub class newly defined method?
    • Discuss
    • 2. What is the use of super call?
    • Discuss
    • 3. What is the difference between path and classpath?
    • Discuss
    • 4. What is JAR file? what are the main uses of JAR files?
    • Discuss
    • 5. What is unwrapping?
    • Discuss
    • 6. What is the use of overloading ? or why overloading?
    • Discuss
    • 7. What is final method?
    • Discuss
    • 8. What is the purpose of overriding toString() method?
    • Discuss
    • 9. why overriding finalize() method?
    • Discuss
    • 10. What is the use of tostring() method?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment