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
@@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)
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
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
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.
@@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.
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.
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...
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
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.
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?
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;"
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
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
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.
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.
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
Best explanation in RUclips
Thanks Sandesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
GREAT ONE , CRISP AND CLEAR
great explanation..being mechanical engineering student, I was able to get the concept just by watching one time..thanks !!
Thanks Venkatesh :)
Thanks sir for adding these Realtime examples which helped me understand the differences in a neat manner.
Glad it was helpful!
Beautifully explained! Most people know what is abstraction and interfaces but don't know where to use which.
Thanks Shwetank.
Thank you, that was a great explanation.
Very clear explanation, Thank you !
Thanks Tufan. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
@@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)
Crystal Clear Explanation
Thanks Aniket. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
very good n detailed explanation. Thank you
Thank you. Please share our youtube channel to your friends circle as it may be helpful for them. Happy Learning.
nice one sir, keep it up 👍👍👍🙂🙂🙂🙂
thanks for your clear cut information about the differences..
Thanks Rajender. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Greatest videos ever on abstract !
Thanks Shivam. Please refer our RUclips channel to your friends circle as it might be helpful. Happy Learning.
Very clear explanation... Thank you very much sir 😊.....
Thanks Siva sir for providing to the point explanation for difference between Interface and Abstract Class. It helped me a ton 🙏
You are most welcome
Very easily explained. Good Job
Thanks Rahul. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
@@SivaReddyJavaTechie will do brother... 😄
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
I got clear structure , thak you so much sir
Thanks Sumanth. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Simply superb bro.. please do more videos.. 👌🏻🙏🏻👍
Thanks Venkat. Please share our RUclips channel to your friends circle as it may helpful for them. Happy Learning.
@@SivaReddyJavaTechie sure bro
Good Explanation.. Keep doing this kind of Videos. Thanx
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
You are correct. I uploaded videos for Java 8 features.
Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
watched so many videos on this ..finaly understud ur video..very nice explanation thankiu so much sir
Finally clear explanation thanks
Thanks Srikanth Reddy. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
@@SivaReddyJavaTechie definitely
Very Nice Explanation and Effort -- Appreciate in coming forward in developing this video
Very Nice!!!
Thanks Indra. Please share our RUclips channel to your friends circle as it may be helpful for them. Happy learning.
literally one of the best explained video!
Thanks Alisha. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning
Awesome explanation...sir you cleared all the doubts in interface and abstract in java.... thanks a lot sir
Thanks. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy learning.
Outstanding explanation!!!!! Loved it
Thank you Yadnesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
Very Simple and Useful explanation
Thank you.
Thank you so much I have lot of questions in interface here afterwards I don't have any doubts thank you
Thanks Yosothai. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
This is one of the most ask question by interviewer, and you cleared all my doubts. Thank you sir.
Thanks Rishabh
very nice explaination shiva....simply awesome....thanks
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.
the most detailed and easy-understanding explanation!!!! Thx a lot :)
Thanks Yanling
Thank you sir, you really explained it really well and made my doubts clear!
Thank you Sneha. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
14:12 abstract vs interface rundown
Your explanation is very good and very clear.. thanks a lot
Thanks Ravi. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.
You are a excellent teacher... Come to EuroAsia, Uzbekistan
Thanks for your appreciation Aneyssa. Happy Learning.
such a great explanation!! It was damn clear and i am highly impressed. Thanks a ton :-)
Thanks Harika. Please refer our RUclips channel to your friends and colleagues as it might be helpful for them. Happy learning.
Thank you. Answers for long waited questions I had
Thanks Kasun. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Clear explanation thankyou..
Thanks Soundarya. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Very clear explanation, thanks bro
Thank you DeviReddy. Please refer our channel to your friends circle as it might helpful for them. Happy Learning.
Great and simple explanation sir. Thank you. Only after watching this video i could understand both the concepts clearly.
Thanks Dhanya. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.
you are god sir !!
Thanks for the note of appreciation, please refer our RUclips channel to your friends circle as it might be helpful. Happy Learning.
Thanks sir for brushing up the concepts
Thanks Aditya. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
This was very clear -- great job.
Nice explanation
can uou please also explain , whats the use case of abstract classes after java 8 new interfaces features
Well explained!!!!!! Thanks a lot!!!!
Thanks Dileep. Please do suggest our youtube channel to your friend circle as it might be help them as well. Happy Learning.
Siva Reddy sure.. I will do..
Respect and Lots of thanks for this kind of quality explanation with the code.. May God bless you.
Thanks Submit. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Thanks for sharing the example.Ty again Sir
Thanks Sakti Ranjan Behera. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Very good explanation. Thank you sir
Thanks Mariza. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
very helpful thank you!
Thanks James.
Nice one. But you haven't told as per the Title of the topic "When to use abstract and when to use interface"
When you don't know the implementation and perform common task to do for all use interface.
@@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.
@@RajuAhmed111 bro please tell me same that abstraction and interface in hospital management system
it is code reuseability bro
Thanks a lot!
Great explanation with an example and the simple words.
Easy to understand.
+Saurabh Dhabe - Thanks Saurabh.
Nice and simple explanation. Thanks Mr. Reddy!
So NYC explanation...Ty
Thanks Prakash. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Nice explanation with example !!!
Thanks Ashish.
Thank you. I am an experienced java developer. This would be helpful for interviews
Thanks Subramanian. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
@@SivaReddyJavaTechie sure
Great explanation sir,
Thanks Kalyan.
Sir, i would be greatful if you upload the videos of Inheritance and static class of real time example
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.
Hrishikesh S thank you....may god bless you....bytheway I’m Muslim from EuroAsia...please don’t hate me🤪🤪🤪
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...
As far as I know an abstract class must include at least one abstract method
Good one Sir. Very useful. I can it is Amazing.
Thanks Srkfan. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Great explanation!
Thanks Suvasish.
Thanks sir ..u r great
Thanks Gamer Romin. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Awesome explanation. Thank you so much. it helps me a lot in the interview.
Thanks Venkatesh. Please refer our RUclips channel to your friends and colleagues as it might be helpful for them. Happy Learning.
good explanation Siva
Thanks Ravi.
Explanation is good
Thanks Sia Gaur.
Thanks for such great content, can you please explain how we can hide implementation with the help of abstract class and interface.
cleared all the points thank u sir
Thanks Neha. Please refer our channel to your friends circle. Thank you.
Nice video sir, I really understood about the abstract and interface
Thanks ShivRam.
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
thank you sir I understood all concepts.
Thanks Prashik. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
Great video
Thanks Shashidhar. Please refer our channel to your friend circle as it might be helpful for them. Happy Learning.
still not clear when interface comes with default method in java 8 then what is the use of abstract class ?
excellent nice explaination
Thanks Ijaz. Please do refer our channel to your friends circle as it might be helpful for them. Happy Learning.
very nice ..thanks
Thanks Ronjon. Please refer our channel to your friends as it might helpful for them. Happy Learning.
Great One
Thanks Bijen.
tanq sir,nice explanation
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.
Nice explanation...
Thanks Sagar :)
well explanation with examples
Thanks Rama Krishna.
clear explanation
Thanks Srikanth. Please refer our RUclips channel to your friends circle as it might be helpful for them. Happy Learning.
thanks sir for the details
Thanks Ahmad. Please share our RUclips Channel to your friends and colleagues as it may be helpful for them. Happy Learning.
You messed up a little in the end but I really liked your explaination. Liked. Thank you.
Thank you so much... It clear my all doubts about abstract class
Thanks Jay.
Nice Reddy. An abstract class is partially implementation. An abstract class may or may not abstract method.
Thanks Naveen.
thank you very much it's very helpful
Thanks SalahEddine Makkaoui!!
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?
Good explanation Sir tq so much
Thanks Ravi. Please refer our channel to your friend circle.Have a Great Day.
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;"
shasudha sudha where is that line?
Save the file after writing that statement..
good explanation!
Thanks Armchair.
Thanks for this video easy to understood can u upload all oops concept
Thanks Krushna Sahu. Please go through videos uploaded here. @ruclips.net/video/gvXLpzAmmf8/видео.html
Thanks for info....
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
nice explanation sir tanq
Thanks Sruthi for the message. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
Tq
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
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
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.
Great Video and great explanation. But I have a question, Can abstract class inherits from other class?
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.
Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
I don't know where an abstract class would be useful, but interfaces are very useful.