answersLogoWhite

0

Yes. Inheritance is achieved by using the super class and sub class concept

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What are the alternatives to inheritence in java?

Java does not support multiple inheritance; a subclass cannot have more than one parent. Java compensates for this with interfaces. A class can implement multiple interfaces, but can only extend one class.


What is object class in java?

object class is a super class for all other class...


Why JAVA cantt support multiple inheritence?

It's by design.


Why Object is Super Most Class In Java?

It's part of the language specification that all objects in Java must inherit from Object. Java defines a strict class hierarchy, and enforcing a "super most class" ensures that this ordering is maintained.


What happens when no constructor function is declared in a class - in Java?

When any constructor is deffined in your class, the java compiler create a default no argument constructor for you. This constructor only have an invocation to the super class constructor (" super( ) ").


Difference object oriented language object based language?

object base: that are not use subtype or inheritence is called object base. object oriented: that use subtypes and inheritence is called object oriented e.g vb.net and java.


What is immediate super class of runtime exception?

If you mean Java's RuntimeException class, its parent class is java.lang.Exception


Write a program to demonstrate multilevel inheritence in java?

Ex: public class A { ... } public class B extends A { ... } public class C extends B { ... } Here class C extends B which in turn extends A so class C indirectly extends class A.


How do you implimenting multilevel inheritance in java?

In java we can implement more than one interfaces for a single class but we can't extend a class to more than one super class so ,java indirectly supports multiple inheritance.


What is the super clas of class?

All Java classes with no defined superclass, extend from java.lang.Object.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


Difference between super and this in java?

The keyword super is used to explicitly call methods/values from the parent class The keyword this is used to explicitly call methods/values from the current class