When to use abstract class and interface in Java

preview_player
Показать описание
In this video you will learn what is abstract and interface and in which scenario we used abstract class and interface in real time
Рекомендации по теме
Комментарии
Автор

I think it better to explain more in your own words instead of studying that because fresher students want more in depth

vishnupavan
Автор

better if explained in an editor by writing and executing, instead of reading content in a blog

ananthvraj
Автор

Abstract class may or may not have any abstract methods

mohd.abubakre
Автор

An abstract class may not have any abstract method.

smarajitnaskar
Автор

In interface all member variabled are public static final bydefault rt?

manjushayenakandla
Автор

Abstract method can't be declared as final. Bcz Once we declares final it can't be changed, but abstract method must be overrided.

tulasibakkireddy
Автор

Abstract methods can't be declared as private.

deepakburra
Автор

Man to good explanation.. thanks thanks thanks

amiimahajan
Автор

But in case java 8 how to differentiate means when will use interface and abstract class

luckysingh-fxxl
Автор

It's not necessary to have abstract method in abstract class
public abstract class Test40 {
public static void main(String[] args) {

}

}

manishkumar-zyiy