Check out our courses:
Enterprise Java Spring Microservices: https://go.telusko.com/enterpriseJava
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : https://bit.ly/java-spring-cloud
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko
Java For Programmers:- https://bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : https://courses.telusko.com/
In this lecture we will learn:
Methods in java
What is an interface?
Need for an interface
#1
We can also pass an object as a parameter in a method.
When you build an application, you need to make it more flexible.
We can create a reference of the parent class and an object of the sub-class.
Passing reference and the reference of an object that you accept in a method, both should be the same.
#2
Interface:-
Interface in Java is used to achieve abstraction.
Interface is used to design an application to make it loosely coupled.
implements keyword is used with a class to extend it to an interface
interface Computer
{
}
.........
class Desktop implements Computer
{
statement;
}
#3
Need of an Interface:-
It is used to implement abstraction.
We can also achieve multiple inheritance in Java, by using the interface.
Any class can extend only 1 class but can any class implement an infinite number of interface.
It is also used to achieve loose coupling.
Github repo : https://github.com/navinreddy20/Javac...
Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko
More Learning :
Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6
JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq
Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA
Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB
NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L
Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.telusko.com
Смотрите видео #66 Need of Interface in Java онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Telusko 18 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 136,20 раз и оно понравилось 2 тысяч людям.