Java Tutorial: Abstract Class & Abstract Methods
Вставка
- Опубліковано 18 вер 2024
- Java Abstract Classes: 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.
An abstract method is a method that is declared without an implementation!
►This playlist is a part of my Complete Java Course playlist: • Java Tutorials For Beg...
►Source Code + Notes - codewithharry....
►Ultimate Java CheatSheet: codewithharry....
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithhar...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Haven't seen someone teaching as clearly as you on the whole UA-cam as of yet.
still this comment holds true
I am watching your videos from California , man u explain better than my professor ,Thanks buddy
Best teacher of java in the world !! I am a complete novice and I am learning from your lectures ! Thank you for such amazing work !!
i didnt know about it i just came to know about it now
In the world u sure?😂
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
@@meenarawat3977 what you doing rn?
The way you have told is the brilliant way. 100% knowledges is delivered. No on have told like that. No one is telling this that abstract class is used to create the pattern of standard, for inherited class. Thank you.
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
Best ever java tutorial ever existed on youtube
Itna sahi explanation with hand written notes vo bhi youtube pe bhaiya aap toh dev manus ho .❤🙏
Dear Harry I have downloaded the whole course of C++ and Paython on your channel you are one of the best teacher in UA-cam
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤ please help me out please
@@meenarawat3977 first do C++ then do html css javascript and then do dsa and algo you are good to go
@@meenarawat3977 can i help you
Looked for many videos on abstract and finally this video makes the concept clear.
You're the best teacher evverrr.. I can understand all the concepts easily.. Thank you for sharing your knowledge for free and stay safe brother 🙏🙏🙏
just follow that damn train CJ
@@AstralHarp is it core java series
@@AstralHarp 😂😂😂😂
@madhurimapurkait919
2 years ago
Best teacher of java in the world !! I am a complete novice and I am learning from your lectures ! Thank you for such amazing work !!
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
In notes ma phone wali example bohot perfect ha abstract classes ko samajhnay k liay.....NICE!!
When I am trying to make an Object of Abstract Class ...le Abstract class : I have a B.f🤣😂
🤣
What do u mean?
I have sainya ban jao mere bhaiya😂😂
@@rustamsinghsahu2238 😂😂😂😂
@@RaviPandey-ng8ub An abstract class cannot be accessed directly it has concrete class objects through which all its methods and variables are accessed .
Well explained Harry. You explained with real life reference that is the best thing. Thank you for the content.
Your tutorials are fabulous 👍
We want new programming courses also.
Ur teachings are mind-blowing which is coming for free on UA-cam is amazing
And waiting for new courses on ur channel
Abstract in Java = khayali pulav.
Lots of thanks for your amazing effort for making java easy to understand ❤️
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
I've never enjoyed a lecture this much before . Maza aagya !!!
Abstract ka matlb khyali Pulao.
Lots of love Harry bhai. ❤❤
02:20 "Abstract matlab khyali pulao"
plz give my heart harry sir
class abstract{
public void setmeaning(){
System.out.println("kayali pulao");
}
}
The way you teach coding is awesome .Thank you so much for such quality teaching that too for free
Wow! This the best tutorial in whole UA-cam. Like if. You argree with this.
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
@@meenarawat3977 You should first complete Java and then learn DSA and make beginners to advance level project.
Okay thank you
khayali pulao ..😅after 3 yr i watch this video honestly bolu ta bhai app bahot badhia batta rahe hen thanks ..
Android Development course with notes requesting one more time😂❤️
Bhai vo bahut mehnat kar rhe hai unka hausla bhadhaiye aur support kijiye......Co sab karenge apne liye par thoda time lagega
@@mastiwithaishvi337 yes,I know bhai.Just wrote that he will not forget about it.👍
@@mastiwithaishvi337 bhai pr wo course abhi complete nahi hua hai aur 1 year se uski ek bhi video post nahi hui hai...
Me too😍😍
Yes we want android tutorial
Crystal clear🎉
Khayali pulao = abstract 🤣
abstract pulao
plz
how can download full playlists
@@lalitakoshti6210 download each video separately
@@lalitakoshti6210 search cwh java and then click on playlist and then download all
80 rs cost
03:02 Chapter 11: Abstract Classes and Interfaces
06:04 Java has abstract methods and classes
09:06 An abstract method makes the whole class abstract
12:08 Abstract class allows for method implementation customization in derived classes.
15:10 An abstract class sets a standard for making more classes
18:12 Understanding abstract classes and concrete classes
21:14 Using abstract classes helps in creating standard methods for phone manufacturers to implement.
24:15 Object creation in abstract classes
Crafted by Merlin AI.
Providing the notes in a zip file would be most convenient for us.
Thank you so much for your efforts.
did you have complete notes of this course
Zip file nhi bhi provide kre Harry bhai to koi issue nhi hona chahiye yaar hme....hr video ke notes wo us video ke niche description me unki website ke through dete hai hme... Waise bhi course free hai to agar hm hr topic ke notes agar unke website pe jaake dekhe to usse bhai ke website ko traffic milti hai....itna to hm kr hi skte hai!!
Man i love the way you teach. ❤️
What did you do after you completed this playlist ? Can you help me idk what to do next
you are the best teacher I love the way you teach us... but sir u wrote wrong code in your blog .you have to change the method run() to abstracted on() method ♡♡♡♡♡♡♡♡♡♡♡♡♡
9:00 onwards epic teaching 😂❤️👍
String abstract = "Khayali pulao";
System.out.println(abstract);
Result:- Khayali pulao
16:24 hahaahaaa
You are a great comedian as well as a coder
It becomes so easy for us to understand the topics in this way.. :)
Thank you very much for this whole playlist!!!!
Umm hiii I am in 2nd year rn ..what should I do ..I just know java rn .. thinking to do dsa after this ...kindly help me please ..what do you think I should do now ❤please help me out please
Thanks harry bruh Love from california......
💀
Sir I know I am late. I just want you to know that you are great.
Can you provide all in one notes for java
Believe me Harry teaches each and every concept in the simplest ever way..
Love you harry bhai aapka c ka course kr rha hu but aapse pyaar ki vajah se ye b dekh leta hu , love Love love love your teaching style.
Bhai tu abhi coding sikh na chalu kiya hai kya?
@@arizzz... ha bhai
@@iVidhan bhai tho c se chalu karna sahi rahega mai bhi abhi chalu karra hu?
@@arizzz... ha bhai mene b parso se c se hi start kiya h
@@iVidhan kitna sikha bhai?
Another analogy to understand it. Think abstract class as "unfinished" item . Say you are owner of laptop company (say "Lenovo"), it will release new model class say "NoobPad". These NoobPad series of laptops will have 4 variants i5 8gb ram, i5 16gb ram, ryzen5 8gb and ryzen 5 16gb. Rest all features except processors and RAM will be same for all the variants. So first of all you will develop all other parts of the laptop and assemble them (Stage-1). However you wont we be able to sell it now. You will only be able to do so once you have added RAM and Processor. So, you will create two groups: One with ryzen processors and other with i5 processors and add respective processors (Stage-2). Now again you will need to add 8gb/16gb ram to these laptops (Stage-3). Then finally you can sell this laptop.
The laptop here at Stage-1 and Stage-2 was abstract. At Stage-1 we knew we will need to add processors and ram later, but at that moment they were not present there. Similarly at Stage-2 we knew we will need to add ram later . At stage-3 all necessary components were there in the laptop and it was an "finished product" and hence not an abstract object.
Sir your way of teaching is the best!😍
Harry bhai Abstract ka Means hai 'Khayali Pulav'
this is in our thoughts or in an idea but having not any physical or concrete existence
Please add some videos on solid principle and design patterns. Thank you in advance!! Appreciate a lot the efforts that you put in making videos.. Thanks a ton...
See previous videos, practice sets
I've been watching your videos since long time. This is the best video available on UA-cam about abstraction in java 😍😇
Thanks for these tutorials sir!
What did you do after you completed this playlist ? Can you help me idk what to do next
Thanks For All Your Effort.....
2:19
"Abstract means khayali pulao"
22:55 , you can use zip extractor I like it a lot easily access and extract zip file.
Great videos
Can you make a JavaFX series after this course
Abstract matlab khayali pulav that is thought / declared without implementation
When comes in existence its concrete
Thank You Sir for this awesome and genuine content.
This q looked difficult to me before but now its a piece of cake for me.
All thanks to you Sir, May GBU with lots of love long life success happiness and enjoyment
Thanks a lot again
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
What did you do after you completed this playlist ? Can you help me idk what to do next
thank you very much for this course. You are the great teacher
"Abstract means khayali pulao" :)
abstract class Shape {
abstract void Area();
abstract void Volume();
}
class Circle3 extends Shape {
int radius;
Circle3(int radius) {
this.radius = radius;
}
@Override
void Area() {
System.out.println(Math.PI * radius * radius);
}
@Override
void Volume() {
System.out.println((4 * Math.PI * radius * radius * radius) / 3);
}
}
class Rectangle3 extends Shape {
int length;
int width;
int height;
Rectangle3(int length, int width, int height) {
this.length = length;
this.width = width;
this.height = height;
}
@Override
void Area() {
System.out.println(length * width);
}
@Override
void Volume() {
System.out.println(length * width * height);
}
}
public class Java_Practice_Set_12 {
public static void main(String[] args) {
Circle3 c = new Circle3(4);
c.Area();
c.Volume();
Rectangle3 r = new Rectangle3(4, 5, 6);
r.Area();
r.Volume();
}
}
Harry bahi intelij idea sai android development kaise karte hai. Kyoki my pc/computer is very low level.
Android studio not run in my computer. So how we can develop android app in intlij Idea
yes, in one zip or after complete the course plz make all pdf in one pdf
Abstract means KHAYALI PULAO
Well explained, all my doubts got cleared, thank you so much for the valuable content
abstract class Shape{
abstract void area();
abstract void volume();
}
class Circle extends Shape{
float r;
float pi = 3.14f;
Circle(){
r = 5f;
}
Circle(int r){
this.r = r;
}
@Override
public void area(){
System.out.println("The area of Circle is: "+pi*r*r);
}
public void volume(){
System.out.println("The volume of Sphere is: "+(4/3)*pi*r*r*r);
}
}
class Cube extends Shape{
float l;
Cube(){
l = 5f;
}
Cube(int l){
this.l = l;
}
@Override
public void area(){
System.out.println("The area of Square is: "+l*l);
}
public void volume(){
System.out.println("The volume of cube is: "+l*l*l);
}
}
public class Main
{
public static void main(String[] args) {
Cube cu1 = new Cube(9);
Circle c2 = new Circle();
c2.volume();
cu1.volume();
}
}
I have question, why didn't you put override notation for volume method
Bhai association aggregation and composition of java pr video bna dein jldi hi Mera 1 hafty me ppr hn or smjh nhi arha buhat se channel dekhy hn pe kch b smjh ni aya , mujhe apka smjhaya huwa acha smjh ata h
khayali pulao😂😂
thank you so much harry bhai, great lecture as always
samajh nhi aaya 2 baar dekhli
Pura playlist dekho samajh ajeyga easily...pahle se sara video dekho bachho 😂❤😊
To kaise tum samjhe????
3 baar dekho
Great video....
Abstract means khayali Pulao 🤣💯
Excellent Work!!!
Abstract Matlab kyali pulao😅😆
Bahut acha padhaya abstract class ko
16:23 BAHUT BURE HO TUM! 🤣😂🤣😂
Amazing way of teaching sir😊🎉👍
2:20
Abstract == Khayali Pulao
Awesome Explanation.
Thanks a lot for your Efforts🙏🙏.
khayali pulao
Sir, Thank so much for useful content 💙
abstract can be taken as " karj " if parent class is abstract i.e. parent have karj then his/her child had to pay for it by overriding the method.....that's a good metaphor to understand abstract class
khayali pulao is the meaning of abstract . very nice teacher.
keep going sir!
love from GJ-13😸
Thanks!
Harry bhai you are the best "Khayali pulav"
Dil se thank you sir ......😊😊😊😊
teacher should be like this - who can make such topics interesting by his jokes and examples
Bestest of the best... Amazing explanation. Kudos to Harry 🙌Thank you 🙏
khyali pulaw .......OP Harry sir🔥🔥🔥🔥🔥🔥🔥🔥
khayali pulaao..... Thank you so much Harry sir...You are the best I have never come this far in any you tube playlist. Please please reply.
thanks bhai yrr bahot aacha pdhaya hai tumne mja aa rha hai video pause krke thanks bolne ka mnn hua
Wow 🥰🥰🥰 sir amazing....bhot maja aaya aaj ❤️......& Thank you sir clear karne ke liye 🥰
Hi{
apke khyali pulao se meko bhukh lg gyi };
Btw() Thanks for teaching us }
Thank you SIr
Abstract - thought of giving thankful credit to Harry in monetary terms once I get placed in IT. (Future tense)
Concrete - gifted to Harry (present or past tense)
u got placed?
Best way of teaching...🙂
Jaza kallahu khair 🎉
Best ❤ achy sy smjh agai ❤️❤️
You teaches all the session verry properly even best easist way
Really thank so so much
I think you should do a basic or simple but attractive project with proper start to end explaination
I'm dam sure just because of your vedio people start getting intrest
ager na samj aye tu smart programing wala sir b boht acha samjhata hai
great content
Nice Teacher
Abstract means thought 😀
abstract : thing which exist in thought (khayali pulao)
Teaching way is so good Harra Dhaniya😅❤
abstract yaani Khayaali pulaav 😆, Noted 👍
Harry Bhai, Gajab Example dete ho Bhai, Maza aa gaya
you explained very well harry bhai..... thank you so much.....
Good 👍
Once a legend said :- Khayali pullav h abstract class
Love you Harry bhai .❤️❤️
Bhai aapka Java course is just fire 🔥🔥
Yes sir you make a zip file of all the java chapter. its very amazing idea