What is inheritance?
Answers were Sorted based on User's Feedback
Answer / janet
Inheritence is the process of inheriting all the features
from a class. The advantages of inheritence are reusability
of code and accessibility of variables and methods of the
super class by subclassses.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / guest
the process of creating new things by using existing ones
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
the process of reusing the existing components to develop
new things
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
inheritance is the property of inheriting the properties of
super class to subclass
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / umesh yeware
Inheritance is the key feauture of object oriented
programming in which you can aquire some or all the
properties of one class into the other class by ihheriting
it
| Is This Answer Correct ? | 0 Yes | 0 No |
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }
What is compile time polymorphism?
20 Answers CTS, Elementus Technologies, Oracle,
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
what is deadlock in threads? with example
What is mvc in java?
Can we inherit inner class?
What are java methods?
What is variable explain?
What is difference between an object and a class?
What is contract between hashcode and equal method?
What is difference between wait and notify in java?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?