Why we need constructor inside an abstract class ? || Popular Java interview question

Selenium Express
Selenium Express
51.9 هزار بار بازدید - 7 سال پیش - Hi coder!! This tutorial covers
Hi coder!! This tutorial covers a complete abstract class example where we are going to learn why we need a constructor in abstract class.

One of the differences between abstract class and interface in java is :
The interface doesn't have a constructor but the abstract class in Java can have constructor within
it.

Then the question we can’t create an object for
both abstract class and interface then why abstract class can have a constructor when the
the interface doesn’t.

So let's understand this thing with an abstract class program which is a very popular java interview questions .(core java interview questions)

Please subscribe to my channel if like this tutorial by clicking on the link below.
@seleniumexpress

Stay tuned and like my Facebook page for more.
Facebook: seleniumexpress


Music :
-----------
credits : -

Adventures by A Himitsu SoundCloud: a-himitsu
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
http://creativecommons.org/licenses/b...
Music released by Argofox A Himitsu - Adventures [Royalty Free ...
Music provided by Audio Library Adventures – A Himitsu (No Copyright ...


-----

intro template :
wwww.youtube.com/Alexbau01
7 سال پیش در تاریخ 1396/09/06 منتشر شده است.
51,997 بـار بازدید شده
... بیشتر