When to use Abstract class and When to use Interface in Java

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 277

  • @yogeesh8637
    @yogeesh8637 6 месяцев назад

    This is wat I m expecting ..from last 4 year I was not getting it ..everyone is just explaining theory part..you are explaining with practical examples ❤ loved it bro

  • @sandeshrana7225
    @sandeshrana7225 5 лет назад +1

    Best explanation in RUclips

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Sandesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @jibinjames5128
    @jibinjames5128 2 года назад +1

    GREAT ONE , CRISP AND CLEAR

  • @StateofQuantumEntanglement
    @StateofQuantumEntanglement 7 лет назад +9

    great explanation..being mechanical engineering student, I was able to get the concept just by watching one time..thanks !!

  • @mahtabbeplab2480
    @mahtabbeplab2480 2 года назад +1

    Thanks sir for adding these Realtime examples which helped me understand the differences in a neat manner.

  • @protonvashishtha
    @protonvashishtha 7 лет назад

    Beautifully explained! Most people know what is abstraction and interfaces but don't know where to use which.

  • @keaweaquarian2631
    @keaweaquarian2631 2 года назад +1

    Thank you, that was a great explanation.

  • @tufanatha7798
    @tufanatha7798 5 лет назад +2

    Very clear explanation, Thank you !

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      Thanks Tufan. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

    • @tufanatha7798
      @tufanatha7798 5 лет назад

      @@SivaReddyJavaTechie Hi Sir, I have one question, is this possible to control a class to access only required methods of an Interface A, A is having test1 and test2 methods, Class B implements A, now I want B can access only test2. Is it possible? (in java 1.7 or 1.8)

  • @maneaniket4200
    @maneaniket4200 5 лет назад

    Crystal Clear Explanation

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Aniket. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @peelygotdrip
    @peelygotdrip 3 года назад +1

    very good n detailed explanation. Thank you

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  3 года назад

      Thank you. Please share our youtube channel to your friends circle as it may be helpful for them. Happy Learning.

  • @SmartProgramming
    @SmartProgramming 6 лет назад +2

    nice one sir, keep it up 👍👍👍🙂🙂🙂🙂

  • @rajenderdasari5304
    @rajenderdasari5304 4 года назад +1

    thanks for your clear cut information about the differences..

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад

      Thanks Rajender. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @shivamkumar-qs7er
    @shivamkumar-qs7er 5 лет назад

    Greatest videos ever on abstract !

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Shivam. Please refer our RUclips channel to your friends circle as it might be helpful. Happy Learning.

  • @gowthamisasanapuri9980
    @gowthamisasanapuri9980 3 года назад

    Very clear explanation... Thank you very much sir 😊.....

  • @harshadarahate3625
    @harshadarahate3625 2 года назад +1

    Thanks Siva sir for providing to the point explanation for difference between Interface and Abstract Class. It helped me a ton 🙏

  • @rahulchandrabhan
    @rahulchandrabhan 5 лет назад +1

    Very easily explained. Good Job

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      Thanks Rahul. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

    • @rahulchandrabhan
      @rahulchandrabhan 5 лет назад +1

      @@SivaReddyJavaTechie will do brother... 😄

  • @tmzpanda
    @tmzpanda 5 лет назад +3

    0:29 abstract class
    1:34 partial abstraction and code reusability
    3:05 bank example
    7:43 no instantiation
    8:33 interface
    12:55 abstraction
    14:07 difference: abstract class extensibility vs interface multi-inheritance

  • @CapTonSumanth
    @CapTonSumanth 4 года назад +1

    I got clear structure , thak you so much sir

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад

      Thanks Sumanth. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @venkatsam2472
    @venkatsam2472 3 года назад +1

    Simply superb bro.. please do more videos.. 👌🏻🙏🏻👍

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  3 года назад +1

      Thanks Venkat. Please share our RUclips channel to your friends circle as it may helpful for them. Happy Learning.

    • @venkatsam2472
      @venkatsam2472 3 года назад +1

      @@SivaReddyJavaTechie sure bro

  • @sudeepduvvuru9625
    @sudeepduvvuru9625 8 лет назад +5

    Good Explanation.. Keep doing this kind of Videos. Thanx

  • @SimaanNassar
    @SimaanNassar 5 лет назад +1

    Good Explanation , small note: in java 8 interface can have a default implantation , so you don't have to implement in sub classes if you provide the default behavior in the interface

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      You are correct. I uploaded videos for Java 8 features.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @aneesfatimashaikh9708
    @aneesfatimashaikh9708 8 лет назад +9

    watched so many videos on this ..finaly understud ur video..very nice explanation thankiu so much sir

  • @srikanthreddy6991
    @srikanthreddy6991 5 лет назад

    Finally clear explanation thanks

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Srikanth Reddy. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

    • @srikanthreddy6991
      @srikanthreddy6991 5 лет назад +1

      @@SivaReddyJavaTechie definitely

  • @ssrkgw4601
    @ssrkgw4601 7 лет назад +4

    Very Nice Explanation and Effort -- Appreciate in coming forward in developing this video

  • @indraverma2811
    @indraverma2811 3 года назад +1

    Very Nice!!!

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  3 года назад

      Thanks Indra. Please share our RUclips channel to your friends circle as it may be helpful for them. Happy learning.

  • @alishachaudhary4854
    @alishachaudhary4854 6 лет назад

    literally one of the best explained video!

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Alisha. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning

  • @jagadishs1086
    @jagadishs1086 4 года назад

    Awesome explanation...sir you cleared all the doubts in interface and abstract in java.... thanks a lot sir

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад +1

      Thanks. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy learning.

  • @yadneshkhode3091
    @yadneshkhode3091 6 лет назад

    Outstanding explanation!!!!! Loved it

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thank you Yadnesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @prateek1586
    @prateek1586 8 лет назад +1

    Very Simple and Useful explanation
    Thank you.

  • @yasothaimani2119
    @yasothaimani2119 6 лет назад +2

    Thank you so much I have lot of questions in interface here afterwards I don't have any doubts thank you

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Yosothai. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @rishabhagarwal3404
    @rishabhagarwal3404 7 лет назад

    This is one of the most ask question by interviewer, and you cleared all my doubts. Thank you sir.

  • @shamshersingh1429
    @shamshersingh1429 7 лет назад +2

    very nice explaination shiva....simply awesome....thanks

  • @ankitgiri6874
    @ankitgiri6874 2 года назад +1

    Video is nice, but dear sir at some points your tongue is sliping for wrong words. This is the best vdo about interface and abstraction, gone through many.

  • @yanlingyang256
    @yanlingyang256 7 лет назад

    the most detailed and easy-understanding explanation!!!! Thx a lot :)

  • @sneharane2596
    @sneharane2596 4 года назад +1

    Thank you sir, you really explained it really well and made my doubts clear!

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад

      Thank you Sneha. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @t3073-b4i
    @t3073-b4i 6 лет назад +2

    14:12 abstract vs interface rundown

  • @kolluru17
    @kolluru17 6 лет назад

    Your explanation is very good and very clear.. thanks a lot

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Ravi. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.

  • @nimoa.rashid9186
    @nimoa.rashid9186 6 лет назад +1

    You are a excellent teacher... Come to EuroAsia, Uzbekistan

  • @harikagoud7652
    @harikagoud7652 4 года назад +2

    such a great explanation!! It was damn clear and i am highly impressed. Thanks a ton :-)

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад

      Thanks Harika. Please refer our RUclips channel to your friends and colleagues as it might be helpful for them. Happy learning.

  • @pcpardon
    @pcpardon 5 лет назад +1

    Thank you. Answers for long waited questions I had

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Kasun. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @gopireddysoundarya7617
    @gopireddysoundarya7617 5 лет назад

    Clear explanation thankyou..

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Soundarya. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @devireddyfavreddy4785
    @devireddyfavreddy4785 6 лет назад

    Very clear explanation, thanks bro

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thank you DeviReddy. Please refer our channel to your friends circle as it might helpful for them. Happy Learning.

  • @dhanyamrajan478
    @dhanyamrajan478 6 лет назад

    Great and simple explanation sir. Thank you. Only after watching this video i could understand both the concepts clearly.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Dhanya. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.

  • @harshupreti1526
    @harshupreti1526 5 лет назад +2

    you are god sir !!

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      Thanks for the note of appreciation, please refer our RUclips channel to your friends circle as it might be helpful. Happy Learning.

  • @adityaratra7290
    @adityaratra7290 6 лет назад

    Thanks sir for brushing up the concepts

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад +1

      Thanks Aditya. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @AnthonyRamtulla
    @AnthonyRamtulla 5 лет назад

    This was very clear -- great job.

  • @pallavianilkar972
    @pallavianilkar972 Год назад

    Nice explanation

  • @apoorv_sri
    @apoorv_sri 11 месяцев назад

    can uou please also explain , whats the use case of abstract classes after java 8 new interfaces features

  • @dileepkeeppalli1147
    @dileepkeeppalli1147 6 лет назад

    Well explained!!!!!! Thanks a lot!!!!

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад +1

      Thanks Dileep. Please do suggest our youtube channel to your friend circle as it might be help them as well. Happy Learning.

    • @dileepkeeppalli1147
      @dileepkeeppalli1147 6 лет назад

      Siva Reddy sure.. I will do..

  • @sumitpaul3080
    @sumitpaul3080 5 лет назад

    Respect and Lots of thanks for this kind of quality explanation with the code.. May God bless you.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Submit. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @saktiranjanbehera7010
    @saktiranjanbehera7010 5 лет назад

    Thanks for sharing the example.Ty again Sir

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Sakti Ranjan Behera. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @marizalobo5634
    @marizalobo5634 6 лет назад

    Very good explanation. Thank you sir

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Mariza. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @jameslemieux8973
    @jameslemieux8973 6 лет назад +2

    very helpful thank you!

  • @sandeepverma337
    @sandeepverma337 7 лет назад +17

    Nice one. But you haven't told as per the Title of the topic "When to use abstract and when to use interface"

    • @RajuAhmed111
      @RajuAhmed111 6 лет назад +1

      When you don't know the implementation and perform common task to do for all use interface.

    • @prakashdolas4483
      @prakashdolas4483 6 лет назад

      @@RajuAhmed111 same we can also achieve using abstract class by defining abstract methods only.except multiple inheritance support what is the other advantage of interface.

    • @Indian_working_mom
      @Indian_working_mom 6 лет назад

      @@RajuAhmed111 bro please tell me same that abstraction and interface in hospital management system

    • @marconarca2706
      @marconarca2706 5 лет назад

      it is code reuseability bro

  • @saurabhdhabe603
    @saurabhdhabe603 7 лет назад

    Thanks a lot!
    Great explanation with an example and the simple words.
    Easy to understand.

  • @madhujitbhattacharjee1087
    @madhujitbhattacharjee1087 6 лет назад

    Nice and simple explanation. Thanks Mr. Reddy!

  • @prakashkumarbehera845
    @prakashkumarbehera845 6 лет назад

    So NYC explanation...Ty

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Prakash. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @ashishkhamkar3339
    @ashishkhamkar3339 7 лет назад

    Nice explanation with example !!!

  • @subramanianchenniappan4059
    @subramanianchenniappan4059 5 лет назад

    Thank you. I am an experienced java developer. This would be helpful for interviews

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      Thanks Subramanian. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

    • @subramanianchenniappan4059
      @subramanianchenniappan4059 5 лет назад

      @@SivaReddyJavaTechie sure

  • @kalyanchakravarthy6098
    @kalyanchakravarthy6098 6 лет назад

    Great explanation sir,

  • @hshimladka
    @hshimladka 7 лет назад +19

    An abstract class is a class that is declared abstract-it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed.

    • @nimoa.rashid9186
      @nimoa.rashid9186 6 лет назад

      Hrishikesh S thank you....may god bless you....bytheway I’m Muslim from EuroAsia...please don’t hate me🤪🤪🤪

    • @nagcvlogs
      @nagcvlogs 6 лет назад +3

      Why would he hate ? he might be a Hindu and an Indian that doesn't mean he hates Muslim, We Indians may hate Pakistanis for creating issues in the countries ... Even we have a lot of Muslims in India and we treat them as our brothers and sisters ...HA HA I guess that's a lot of information Don't mind me ....I was Just saying...

    • @ALDMED3962
      @ALDMED3962 6 лет назад +1

      As far as I know an abstract class must include at least one abstract method

  • @mdalimiyan
    @mdalimiyan 6 лет назад

    Good one Sir. Very useful. I can it is Amazing.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Srkfan. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @suvasishsahoo2189
    @suvasishsahoo2189 7 лет назад

    Great explanation!

  • @pubgmoments1584
    @pubgmoments1584 5 лет назад

    Thanks sir ..u r great

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Gamer Romin. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @muradivenki
    @muradivenki 5 лет назад

    Awesome explanation. Thank you so much. it helps me a lot in the interview.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Venkatesh. Please refer our RUclips channel to your friends and colleagues as it might be helpful for them. Happy Learning.

  • @SudershanRavi
    @SudershanRavi 6 лет назад

    good explanation Siva

  • @siagaur8483
    @siagaur8483 6 лет назад

    Explanation is good

  • @parkashram6482
    @parkashram6482 4 года назад +1

    Thanks for such great content, can you please explain how we can hide implementation with the help of abstract class and interface.

  • @nehapatel8212
    @nehapatel8212 6 лет назад

    cleared all the points thank u sir

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Neha. Please refer our channel to your friends circle. Thank you.

  • @shivramshrestha3877
    @shivramshrestha3877 7 лет назад

    Nice video sir, I really understood about the abstract and interface

  • @sweetthirty2
    @sweetthirty2 Год назад

    Hi sir Why do we use an interface and not an abstract class? What if I implement the same method in an interface and abstract then? Any difference? recent interview question asked

  • @prashikawachar9358
    @prashikawachar9358 5 лет назад

    thank you sir I understood all concepts.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Prashik. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @MrShashidharhegde
    @MrShashidharhegde 6 лет назад

    Great video

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Shashidhar. Please refer our channel to your friend circle as it might be helpful for them. Happy Learning.

  • @AdityaSingh-qn7rf
    @AdityaSingh-qn7rf Год назад

    still not clear when interface comes with default method in java 8 then what is the use of abstract class ?

  • @ijazahmad-hh2zk
    @ijazahmad-hh2zk 6 лет назад

    excellent nice explaination

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Ijaz. Please do refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @ronjonbanerjee1760
    @ronjonbanerjee1760 6 лет назад

    very nice ..thanks

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Ronjon. Please refer our channel to your friends as it might helpful for them. Happy Learning.

  • @bijennaorem7647
    @bijennaorem7647 7 лет назад

    Great One

  • @TeluguInshots12345
    @TeluguInshots12345 8 лет назад +2

    tanq sir,nice explanation

  • @kgourav01
    @kgourav01 6 лет назад

    Good explanation but only one correction. Abstraction class can contain all the non abstract methods as well. It is not required to have abstract class atleast one abstract method for being it an abstract class. The main motive of abstract class is that it can't be instantiated.

  • @old4312
    @old4312 7 лет назад

    Nice explanation...

  • @RamaKrishna-so9nz
    @RamaKrishna-so9nz 7 лет назад

    well explanation with examples

  • @sreedilse143
    @sreedilse143 5 лет назад

    clear explanation

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Thanks Srikanth. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.

  • @ahmadali6624
    @ahmadali6624 4 года назад

    thanks sir for the details

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  4 года назад

      Thanks Ahmad. Please share our RUclips Channel to your friends and colleagues as it may be helpful for them. Happy Learning.

  • @VasuRana
    @VasuRana 3 года назад

    You messed up a little in the end but I really liked your explaination. Liked. Thank you.

  • @JayTailor45
    @JayTailor45 7 лет назад

    Thank you so much... It clear my all doubts about abstract class

  • @naveenp8438
    @naveenp8438 6 лет назад

    Nice Reddy. An abstract class is partially implementation. An abstract class may or may not abstract method.

  • @salaheddinemakkaoui7970
    @salaheddinemakkaoui7970 7 лет назад

    thank you very much it's very helpful

  • @earthcitizen7156
    @earthcitizen7156 5 лет назад

    Hi siva sir
    1)Plz explain the difference b/w abstract class vs interface of java 8
    2)Difference b/w inteface of java 7 or below versions of java and intefaceas of java 8 interface?

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 7 лет назад

    Good explanation Sir tq so much

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  7 лет назад

      Thanks Ravi. Please refer our channel to your friend circle.Have a Great Day.

  • @hashinitamilkolam5959
    @hashinitamilkolam5959 7 лет назад +4

    Hi Siva Reddy ,
    Good explanation ....
    I have one doubt , at last in that AbstractClassDemo.java program had one error i couldn't find that error please explain me . because i'm not that much familiar in java .
    error : 20th line "Private int amount = 0;"

  • @rampage241
    @rampage241 6 лет назад

    good explanation!

  • @krushnasahu28
    @krushnasahu28 6 лет назад

    Thanks for this video easy to understood can u upload all oops concept

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  6 лет назад

      Thanks Krushna Sahu. Please go through videos uploaded here. @ruclips.net/video/gvXLpzAmmf8/видео.html

  • @s260888
    @s260888 7 лет назад

    Thanks for info....

  • @agarwalmohit43
    @agarwalmohit43 7 лет назад

    Hi Siva,
    Thanks a lot.
    I was too confused about the abstract and interface, where to use what. This question was repeatedly asked by interviewer, and as result i was not able to answer appropriate logic behind each one.
    Regards,
    Mohit

  • @sruthidevi8443
    @sruthidevi8443 5 лет назад

    nice explanation sir tanq

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад +1

      Thanks Sruthi for the message. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @start1learn-n171
    @start1learn-n171 2 года назад +1

    Tq

  • @shubhamshah3541
    @shubhamshah3541 11 месяцев назад

    abstract class conatin all the methods as concrete also, there is no rule like you need to mention atleast 1 abstract method as you mention @Siva Reddy

  • @korlamskrishna
    @korlamskrishna 7 лет назад

    Nice info.. one thing we are missing here... if we create object for child class say for ex hdfc and calling methods we are loosing polymarphsim here

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  7 лет назад

      Siva - This is called as runtime polymarphism where you have same method signature in both super class and sub class but at runtime sub class method overrides the super class method.

  • @YADA70073
    @YADA70073 5 лет назад

    Great Video and great explanation. But I have a question, Can abstract class inherits from other class?

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Yes, and you cannot instantiate it either, of course. If you extend a class with an abstract class and not define or provide the implementation for the base class abstract methods then the child class extending it would automatically become abstract.

    • @SivaReddyJavaTechie
      @SivaReddyJavaTechie  5 лет назад

      Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.

  • @IndellableHatesHandles
    @IndellableHatesHandles 2 года назад

    I don't know where an abstract class would be useful, but interfaces are very useful.