By using Inheritance. By using Inheritance once class can re-use or inherit the features of another class.
Ex:
public class Ferrari extends Car {
...
}
Here, the class Ferrari reuses code/features of the class Car.
Copyright © 2026 eLLeNow.com All Rights Reserved.