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



0
50606

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. https://www.youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?sub_confirmation=1 Stay tuned and like my Facebook page for more. https://www.facebook.com/seleniumexpress/ Music : ----------- credits : - Adventures by A Himitsu https://soundcloud.com/a-himitsu Creative Commons — Attribution 3.0 Unported— CC BY 3.0 http://creativecommons.org/licenses/b... Music released by Argofox https://youtu.be/8BXNwnxaVQE Music provided by Audio Library https://youtu.be/MkNeIUgNPQ8 ----- intro template : wwww.youtube.com/Alexbau01

Published by: Selenium Express Published at: 6 years ago Category: آموزشی