How to Create Inheritance in JAVA
In this article, you will learn How to Create Inheritance in JAVA. Example:- class Vehicle { protected String brand = “Samsung”; public void honk() { System.out.println(“Mobile, LED!”); } } class
In this article, you will learn How to Create Inheritance in JAVA. Example:- class Vehicle { protected String brand = “Samsung”; public void honk() { System.out.println(“Mobile, LED!”); } } class