What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-16 10:44:20
is-a relationship in java
‘is a’ relationship is also known as inheritance. We can implement ‘is a’ relationship or inheritance in java using extends keyword. The advantage of inheritance or is a relationship is reusability of code instead of duplicating... Add solution -
Other 2021-11-05 10:46:17
how u can achieve multiple inheritances
Multiple inheritance in Java programming is achieved or implemented using interfaces. Java does not support multiple inheritance using classes. In simple term, a class can inherit only one class and multiple interfaces in a java programs. In java termi... Add solution -
Other 2021-11-04 19:15:09
difference between abstract and interface
Interface 1) Interface contains only abstract methods 2) Access Specifiers for methods in interface must be public 3) Variables defined must be public , static , final 4) Multiple Inheritance in java is implemented using interface 5) To implement an int... Add solution -
Javascript 2021-10-09 14:10:10
javascript class inheritance
// Class Inheritance in JavaScript class Mammal { constructor(name) { this.name = name; } eats() { return `${this.name} eats Food`; } } class Dog extends Mammal { constructor(name, owner) { super(name); this.owner = owner; } eats() { ret... Add solution -
Java 2021-09-10 14:16:03
difference between interface and abstract class java
Interface 1) Interface contains only abstract methods 2) Access Specifiers for methods in interface must be public 3) Variables defined must be public , static , final 4) Multiple Inheritance in java is implemented using interface 5) To implement an int... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5