Difference between Interface and Absract Class
HTML-код
- Опубликовано: 26 ноя 2024
- Java interview questions and answers on abstract class , Interface with examples.
Learn:
What is abstract class?
What is interface?
What is the use of abstract class and interface?
When to use Abstract class and when to use interface?
What is the difference between abstract class vs interface?
~~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion:
t.me/joinchat/...
Access and learn Api Automation:
vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
I am trying to learn Java for the longest time. Never got the concepts clear. You have been a life saver for me. I don't feel the need for any other tutorial now. The way you teach is the most perfect I have seen. Thanks a Ton!!! Please continue this great work....
same with me.
I know im asking the wrong place but does anyone know of a tool to get back into an instagram account..?
I was stupid lost my password. I appreciate any tips you can give me!
I have never see any any explanation as clear and co concise as this. you are a great teacher
Even many Java experienced guys find it difficult to explain difference between interface and abstract class, they just keep on reiterating interface and java but miss the clean explanation, but the way you explain with such a clarity , WOW., first time ever seen such convincing explaination.
I have been watching since 3 yrs about abstract and interface but no one has given clear cut and didn't understand but first time my doubts gone by watching this extraordinary video
I don't even know how to thank you. The way you explain concepts, I don't think I have ever seen someone like you. Hats off to you!!
Thanks for watching :)
Excellent explanation for guy like me who is a beginner, Plus Naveen's accent is very Neutral and not like other people videos who says yeight to 8. Wish you billion subscribers
The way of teaching is excellent naveen .i am new to java but i am understanding quickly and i am also watching your selenium videos.Your voice is very clean without any disturbance.thanks naveen for uploading videos
I dint know anything about java yesterday.Now ,it seems I know almost everything with concept in one day.
Excellent Naveen sir.Benefit ratio is 100% in one day.
Best tutorial found on 1st day of my java learning.
Thanks.
Thanks for watching. Keep learning
Awesome videos, I have learned it around 8-9 years ago as a theory but this video made the idea crystal clear. Just love your teaching abilities. Keep it up and huge thanks for all your videos.
Thanks for watching
You are doing great man really don't stop this many of them are getting their career with your help...Their is no words to explain and thanks for all you efforts
You made build interest in Coding stuff, Otherwise i didnt have much interest towards Programming, Now i am Loving this. Thanks.
Difference between abstract class and interface, when to use them, and how to define abstract class and abstract method.
✦
The main difference between abstract class and interface is that abstract class can have both concrete and abstract methods, whereas interface can only have abstract methods.
00:05
✦
Abstract classes allow the creation of multiple abstract methods as well as non-abstract methods.
02:41
✦
Method overriding and abstraction concept
07:47
✦
Abstraction is a way to hide implementation logic
10:13
✦
Interface allows defining only abstract methods.
15:50
✦
Implementing 100% abstraction in Java
18:32
✦
Accessing overridden methods and non-overridden methods in BMW class
23:24
✦
BMW does not allow parent reference variable to access specific methods
25:57
✦
The basic difference between abstraction and interface
30:05
Best explanation so far about the abstract class and interface, Thank you Sir
Very nice video with clean and clear explanation.
At first I thought it is very long but after watching it completely, I understood that 30 mins are actually required in clarifying the concept.
Thanks Naveen.
I really like your videos and I am going to recommend it to my friends as well :)
Keep up the great work.
Love from NZ
One of the best vedio on interface and abstract ever watched
Now i can not forget difference between this 2 topics thanks Naveen
Hey naveen ...i really appreciate your work...one requenst from my side make a video on ....where we use all these concepts in selenium....i.e abstraction, polymorphism, overriding, overloading, encapsulation ...etc...thanks
It's the same. You just need to learn java and oops concepts and you can work in selenium (or even in any oop programming language once you learned it well).
(I know it's late answer, but may be useful for others)
most simple and clear video of Abstact classes and interfaces.
Thanks !!
Glad you liked it
Great .... I take the java concept to fulfill my PHP work ..Thanks for the explanation sir
Excellent teaching, Be my Mentor Naveen🙏
Thanks, Naveen for such amazing videos which are clearing almost all my doubts, As soon as the question pops in my mind, You explain it the very next minute in the video. Great teaching skills. I hope, I recall all of it well in my interviews! :)
Thank you Naveen for explaining so well the concepts of Interface and Abstract class.You are gem
Its Very Cleared about Interface and Abstract. Thanks Buddy.
Clean and understandable explanation, thank you Naveen
I am new to learn Java. I was so much confused understanding difference between interface and abstract class thanks Naveen you cleared my confusion. Really appreciate your honesty in sharing knowledge. By the I new to your channel as well. I need help with Array if can help me or share the link if already have a video on.
One of the best video, Thankyou Naveen!
Excellent concept was explained by Naveen super
Great explanation ...reallly osam
what about the static and default methods in the interfaces, which are non abstract methods right?
thankyou , its amazing ,all concepts are crystal clear.
Thank you Naveen for sharing the knowledgeable video.
Superb Explanation.....thanks a lot Naveen
excellent video. most demonstrations regards interfaces lack precise explanations. I took me a long time to grasp as well. What needs to be shown is what happens at the dot operator when using either an interface as refernece type or the class as reference type. that way you can see what methods are available as soon you press the dot. cool stuff.
excellent video naveen...could you please provide soft copy for all java interview Qu and ans.
Thanks a lot Naveen sir ....clearly understood the concepts..pls make sure It will be available to us always... thank u so much sir..
Thanks sir..very informative video ...this question was asked in interview
Awesome explanation Naveen
Does an interface achieve complete abstraction even after Java 8 where default methods are introduced?
Excellent explanation. Thanks Naveen!
Thanks sir for clearing my concepts..😊😊🙏
perfect explanation as usual.. Thanks
Sir you have much depth knowledge about concept 💯👌👌🙏
Thank you naveen.. your videos are always life saver for me.. I have a question, can u pls tell me which is the abstract class in the selenium library.. ?? In every interview i am getting this question..
Good! was really struggling with the difference btn Abstract class and Interface....Thanks soo much for this video
Perfect way to understand abstraction and interface. Really enjoying your videos.
Thanks Naveen for explaining it in easy way. I have one question here, can we create object of abstract class using anonymous class for overriding abstract methods of abstract class then using same object to call other non abstract methods.
best tutorial so far
Glad that it helped you..
Very nicely explained.Thanks for this video.
Hai naveen .. I like your classes very much. In the interview for QA they are asking how interface and abstract use in selenium.
This type of questions are little hard to reply. can you please tell us OOps concepts and also where OOPs will use in selenium
Hi Naveen, Can u provide me where we use interface and abstract class in any project with example
Awesome your videos are helping alot..your way of explanation is really nice and gives a clear understanding
Thanks Naveen!!! Very Well explained
Thanks Naveen .. i am searching for this topic in your videos
Thanks man! Your help is great!
thanks for the video..its very useful to know the diff btn both....
Superb informative 👌
Thanks Naveen. Amazing clarity I got. Just have one query.. if all the methods in an abstract class are abstract, does it perform better than interface?
If yes, what is the use of interface...as abstract class is achieving the same thing with better performance.
Does interface do anything, which abstract class cannot do?
i think a class can implement multiple interfaces but it cannot extend more than one abstract class. It cannot do multiple inheritance with Abstract class. So this might be the difference.
nice explanation just a suggestion can add an example from selenium perspective
Can parameter be given in the parent class for both abstract class and interface?
Thanks a lot Naveen sir for this detailed information
Very nice and clear explanation
Very nice video Naveen Sir !
very simple and cleat to explained the concepts. thanks.
Sir can multiple inheritance done for abstract class ?
Great Navin, i like your videos , awesomely explained
5* for your teaching ability.
do we have any latest video with java 8,9 features. If any please share the link
Superb content!
why is it that we can't create abstract classes without any abstract methods ? I did not got any errors while doing so..
You did not mention about default methods of interface introduced in Java 8. Please mention about it.
God of JAVA.
Thank you Naveen. This is so helpful !!
Hi Naveen, I wanted to learn selenium with Java, kindly let me whether you are giving training, Also let me know if you r teaching realtime
yes refer this : naveenautomationlabs.com/selenium-training/
Superb Explanation..👍
Good explanation. Could you please explain the variables access also
Can you give any framework related example where we can utilize this abstract or interface concept while designing framework
Take an example of webdriver and chromedriver
Web driver is an interface and chromedriver is a class which implements webdriver interface... Hope this helps
That was very helpful. Thanks.
Just awesome 👌 👏
Very good explanation
Very nice Teaching
Very good explain 👍
Really Naveen tutorial the great stuff tutorial... thanks a lot Naveen
Hi Naveen,
I am going through your courses and finding them to be very carefully woven for better and thorough understanding of the viewer.
Hats off for that.
Having said that, could you please answer a doubt I have ?
Can a non-abstract class have an abstract method as well ?
Thanks in advance :-)
We can say concrete method too to non abstract method ?
Interface can have only abstract methods. Since Java 8, it can have default and static methods also.
In Java interface can also have private methods
i think with out abstract method also we can define abstract class. there is no restriction on that. Can you check that
@naveen is it necessary for a class to have at least one abstract method to make a class as abstract
Hi navin,
Can you please make vedios on c#? Or suggest any vedios which has good explanation like your vedios?
Simply superb
Thank you so much for efforts Sir..!!
Java 8 default methods in interface is a killer
Good Explanation
Sir in abstract class not compulsory to have abstract method?
Excellent bro, thanks
Thank you sir really clean and clear explanation. Please can you upload one video on java 8 when to use abstract c and interface bcoz in interface they added static and default method
why we cannot create an instance of abstract class ?? Please Describe I have a lot of confusion.
Great explanation brother
It's not necessary to have at least one method abstract in abstract class. But if there is exist any one method abstract class must be abstract.
where can we use in automation framework...does we really need in automation framework?
Thank you!
@naveen- Seems typo in the word Abstract