logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Which of the following statements about inheritance is false?


  • Options
  • A. Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
  • B. A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
  • C. Through inheritance, a parent class is a more specialized form of the child class.
  • D. Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.

  • Correct Answer
  • Through inheritance, a parent class is a more specialized form of the child class. 

  • Tags: Analyst, Database Administrator, IT Trainer

    Technology problems


    Search Results


    • 1. Which of the following is not a keyword?

    • Options
    • A. assert
    • B. pass
    • C. eval
    • D. nonlocal
    • Discuss
    • 2. Does not overriding hashcode() method has any performance implication ?
    • Discuss
    • 3. What is an error-first callback ?
    • Discuss
    • 4. I don't want my class to be inherited by any other class. What should i do?
    • Discuss
    • 5. main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 6. What is latest iOS version?
    • Discuss
    • 7. What are the features is IOS 6?
    • Discuss
    • 8. Does iOS support multitasking?
    • Discuss
    • 9. Name the framework that is used to construct application?s user interface for iOS.
    • Discuss
    • 10. Who calls the main function of app during the app launch cycle?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment