WEBVTT

00:00.140 --> 00:00.680
Hi everyone.

00:00.680 --> 00:02.050
Welcome back to this tutorial.

00:02.060 --> 00:09.020
In this tutorial, we will compare and understand the differences between the abstract classes and interfaces.

00:09.290 --> 00:15.980
We all know that abstract classes and interfaces are fundamentally different, but I would like to highlight

00:15.980 --> 00:20.210
the key differences with the introduction of default methods.

00:21.020 --> 00:24.260
Abstract classes can have instance variables.

00:24.840 --> 00:29.370
And interfaces are not allowed to have instance variable.

00:29.400 --> 00:33.060
This did not change from the prior versions of Java.

00:33.450 --> 00:42.750
We all know that a class can extend only one class, but it can implement multiple interfaces with this.

00:42.780 --> 00:47.550
Are we saying Java enabled multiple inheritance?

00:48.420 --> 00:49.710
The answer is yes.

00:49.830 --> 00:55.110
This was never possible in Java prior to Java eight.

00:55.290 --> 01:01.680
Now let's go ahead and code some examples exploring multiple inheritance in the next tutorial.

01:01.800 --> 01:03.970
With this we came to the end of this tutorial.

01:03.990 --> 01:05.130
Thank you for watching.
