#61 Abstract Keyword in Java
HTML-код
- Опубликовано: 6 фев 2025
- Check out our courses:
Java Full Stack and Spring AI - go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
DevOps with AWS: From Basics to Mastery : go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
In this lecture we will learn:
What is Abstraction?
Abstract method in Java
Abstract class in Java
Abstract vs Concrete classes
#1
Abstraction is a process of hiding the implementation details and showing only functionality to the user.
#2
Abstract method:-
Instead of defining the method, we can declare the method.
If we put a semicolon at the end of a method, it means that you only declare the method like:
public void drive();
This method does not contain any features and you will not be able to create an object of it.
You need to add an abstract keyword to only declare a method.
#3
Abstract class:-
Abstract methods can only be defined in an abstract class.
We need to add an abstract keyword before a class to make it an abstract class.
Objects of an abstract class can not be created.
If you are extending an abstract class, then it is compulsory to define all abstract methods.
It is not necessary that an abstract class should have an abstract method.
Abstract class can have an abstract or a normal method or both.
An abstract class can have more than one abstract method.
#4
Concrete class: A class other than an abstract class is known as a concrete class.
An object of a concrete class can be created.
Github repo : github.com/nav...
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com
You explain 600x better than my professor.
You are right
😂
1000 times better than my professor.
so sad on you 😂
@@ShubhamSingh-jx1ipthats why he is global mentor and teachers r still teaching in collages 😂
Thanks
You are the best teacher. This is what happens when masters of the subject explains. The most interesting thing is that you clear the doubts and put yourself in the shoes of a student.
Thank you so much for these priceless videos. I can not thank you enough for the quality and the efficiency of your ways of explaining concepts. I am a newbie computer science student and you are basically saving my life! I am really glad that I found your channel, will recommend to any newcomers who are trying to learn concepts in computer science in the future. Thanks a lot!
we as a community must create a abstract class called "teachLikeNavin" and every teacher must extend it so that the world develop much faster.
Haha nice one
Lol yes!!
Joy to watch you Navin. Thank you for the videos and your time.
Mind = Blown 🎉❤😊 this lecture was very interesting!
Thanks, Navin, for your clear explanation of Abstract class. It really helped me understand.
one think i like the most about you is how humble are you 🎉
This is the best explanation ever on this topic! Thanks so much.
Your explaination was very help to gain the knowledge and understanding the subject in an easy manner
You are too good, I really like the way you explain things.
You explain java the way that no one can.... great
Sir .. Fast & Furious 7 .. Mv Name 🙃🙃 .... Car Jumped From 1 Building To Another Building There .. Transporter 2 Also Has The Same Scene I Guess 🙃 ...
Your are too good Sir! I really love the way you explain with examples and make us understand the concepts.
Key Points :
We use abstract when we want to define but don't want to implement .
Abstract methods can be part of only Abstract classes (but not vice versa).
We cannot directly create an object from Abstract Class.
We can extend abstract class and all abstract methods should be implemented then only we can use if we cant implement all abstract methods then we should make the class abstract hence we cannot create an object using the class.
Best and simple explanation of all time...
Thank You
Point to remember: we can't create object of abstract class. Abstract method must be defined in the abstract class.
concrete class- we defined abstract methods.
a great, detailed playlist every concept is explained very easily
Superb explanations with examples.clearing all my doubts.
Your explanation give a very clear understanding about the concepts without any doubt thank you so much sir
super explanation navin sir.
love your all videos and damn you are really very crazy .. your explanations are mind blowing and understandable
thank you, best explanation ever about abstract/concrete classes!
The best teacher i like .
Your lectures need more likes😍🎉
There is not even a 1% that i didn't understood
Perfect 👍
The movie is fast and furious right sir??😁
8:45 “ fast and furious ”😂
thank you so much for million dollar explanation sir
Keep going! these videos are amazing and really helpful 😇
He is discussing about a car and then google provides you with a advertisement of a car🤣
Thanks 😊👍 very much sir. Your explanation easily to understand.
💯 👌. This is amazing
What an explanation 😍😍
Great my boss ❤🎉😂
SIR CAN YOU PLEASE MAKE A VIDEO ON WHAT SOFTWARE YOU ARE USING AND HOW TO INSTALL IN ON MAC OS SPECIFICALLY,IT WOULD BE A GREAT HELP
good explaination sir jii
So good tutorial thank you
Hi Navin, I have a doubt. There should be one abstract method inside the abstract class to call it an abstract class right? Correct me if i am wrong.
Thank you
Thank you . Well explained
Thank you
Thanks a lot!
ur laughing is beautiful sir😜
Why we refer object as Car obj = UpdatedWagonR () and why not, UpdatedWagonR obj= UpdatedWagonR(); ?
U can do that too
When a class is abstract without any abtract methods and having only normal methods. Then how to access those methods as we cannot create an obj for abstract class.. please clarify this Navin
Create a dummy class that extends the abstract class.
Sir absract class implements interfaces sir?
Uttar Pradesh ki bhasa m bole to, "Bhai Ek Number"
I can recall Pure virtual function in C++
Thank you sir
what is the use of this topic and its applications
Thank you ☺️
What if we java a final method / class ?
Well explained. Easy to understand. I just have one doubt,
why do you add the "x:" while Printing anything?
it's default from the IDE - vscode extension
Very nice
the movie name is Fast & Furious :p
thank you
thank you.
Bro.
Your channel name is expressing that you telugu language.
Is it right??
Do you have MG Commet
0:33 I'm one of those lol 😅
guruji charan kahan hai aapke
Sir why wagonR why not Gwagon
Tq
sir meru god
Sure sir I think the movie name is julayi
which platform are you using for coding?
VS code
Why can we not create the method drive in the wagonR method rather than declaring it in the parent abstract class. Then we wont need to have the concept of abstract . Can someone pls explain ...
Suppose u create a shooting game in which u must have a gun which has some properties and function. Like shooting damage recoil control. In abstract class u create only method for gun but not defined and other class must have to override it and create a method for this according to guns like akm has different properties. Now suppose in new update u introduced a new gun with different functions now its compulsory to u to override parent class method and define it again according to your new gun. I hope u understand this example.
How can we perform expilicity
movie name fast and furious 7
Can anyone suggest which is the application used to run java program here
Vs Code
Subtle explanation!
Back to the future car flys
noice video!!
6:50
Oh i thought G-Wagon 😅
joke of the day i want a car to fly...😂😂😂
❤
You also look like J Sai Deepak.