JAVA8 Abstract Vs Interface

Опубликовано: 01 Январь 1970
на канале: codeWithVenky
77
4

A class can have a state which can be modified​
by non-abstract methods but an interface cannot have the state because they can't have instance variables.​

define constructors inside an abstract class, but you cannot define constructors inside an interface in Java.​

By using abstract class you can achieve only single level inheritance while multiple inheritance is possible though Interface​


На этой странице сайта вы можете посмотреть видео онлайн JAVA8 Abstract Vs Interface длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь codeWithVenky 01 Январь 1970, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 77 раз и оно понравилось 4 зрителям. Приятного просмотра!