#doubt why we have to write "private int health" in class player2 as well when we already have written it class player1 and when i am removing it from class player2 why i can't access it when i already have inherit it from class player1 give me full explanation please
Hi. Simple question: why are you able to override class player1 methods in class player2 even it they’re not “abstract” ones ??? Technically it seems to be possible but it’s not a good practise right? I thought that we were only able to override “abstracts” ones (some errors at compile time) but I was wrong, it’s still possible to override non abstract ones.. Thanks
That's why i am asking your just override method heal in player2 but there is no use . If there is no use with that method why should we created and overrided
@@_eazyalgo tum bata sakte ho ki hame ese kuch condition laga ke methods chalye ki f press karne gun1 se fire ho aur g press karne par gun 2 se fire ho aisa kuch kar sakte h
Hi! It seems that the heal() method does not work on player 2 for me. This is what i do: 1) Shoot with gun 2) heal 3) shoot with gun again Now after the heal command, it says "health is 100 but after shooting the second time it is evident that it didnt work since is health is equivalent to having been shot twice. Is this because heal() method is declared in the player 1 class and cant acces the private variable health in the player2 class? Vary nice tutorial, I am greatful for your response.
Best explanation for oops in youTube yet.
Thanks alot man :)
usually I didn't comment, but this video is very helpful man , thanks 🙏❤️ , please make more videos like this. please
Thanks Zakir :)
Works perfectly. Thank you for the resource. Please extain this project
Welcome. Yes will create more such projects.
@@_eazyalgo who are holding guns here ? i didn't understand the concept of this video
This is my first project i am doing such a good explaination
Nice work dude. expecting more mini projects from you. thank you.
Really appreciate man :)
Bro excellent explaination!
Step by step explaination! Good..
This is what I want
Keep supporting Shaikh Asif :)
Wow..superb 😍😍😍..very helpful 😍😘🙏🙏🙏🙏
Thanks man :)
Bro , This is craz yo , no words to tell, but keep this yo, thanks very much!!! good luck
Thanks man
Loved❤ your game I am going to make this mini project tomorrow morning pls make more such videos.😉😊🙂👍🙏
Thanks Mahesh, working on more videos
Hope it will implement with graphics, you have your new subscriber ❤️
This will be my semester project 😁
love from pakistan
❤
Thanks Anas, it means a lot :)
Awsome! thanks for making content like this, it helps me a lot in school!
Loved it
That was very helpful. thankyou so much.
Really appreciate it man :)
Thanks easy to understand and follow 😊
Thanks Anitha for your kind words!! :)
Good one bro
Thanks Avinash :)
Really appreciated man ❤
Awesome explanation man. Can you please please start explaining core java to us?
Will surely work on that buddy :)
Thanks,this is really helpful 💫
Consider Subscribing Dhaval :)
awesome bother i want concept of oops in detail
Thanks brother! Will upload more videos soon
Bro this concept is very interesting. Update this game and share with us. Take 💜💜💜
Thankss :)
Great video!
Thanks Isak :)
#doubt
why we have to write "private int health" in class player2 as well when we already have written it class player1 and when i am removing it from class player2 why i can't access it when i already have inherit it from class player1 give me full explanation please
email me at abhay10june1999@gmail.com
good tutorial
Thanks :)
you should read about DRY principle :)
why are you using this?Can't we do name=name,health=health,weapon=weapon?
#doubt @EazyAlgo
why we used setter when we already set our values in constructor?
To verify
Used protected access modifiers
your voice😌💕
Thanks :)
Thank sir 💜
Cool!
Thanks Pedro
please make more oops videos in java
Yes!
Are u uploading more videos ?
How to convert it into gui based?
Cannot determine path to 'tools.jar' library for 1.8, how to remove this bug??
Email me at abhay10june1999@gmail.com with detailed explanation of issue.
take this like and subscribe😍
Thanks man :)
Hi. Simple question: why are you able to override class player1 methods in class player2 even it they’re not “abstract” ones ??? Technically it seems to be possible but it’s not a good practise right? I thought that we were only able to override “abstracts” ones (some errors at compile time) but I was wrong, it’s still possible to override non abstract ones.. Thanks
Hey Soufian,
Its possible to override methods from parent class to child classes if they are not private.
Why did you make: if - if - if, and not if - else if - else?
Can you show the case diagram for this project?
Caught up with my job man, will try to do from next videos
Yeah thanks bro..
Sir may i know the system features ; project scope & operating environment
It's done on IntelliJ Idea by jetBrains at OS in Mac OS big Sur.
Intelli j theme?
Bhaiya error aarhi h kya aap bta skte ho ,main fill mai ,maine eclipse pr try Kiya but I can't find the error ,
email me your problem with screenshots at abhay10june1999@gmail.com
@@_eazyalgo okk I can send you
Sir make front end of game also
Currently don't have any plans for that
Can a database handling project make in core Java?
I don't think so you can have database in your project by just using core java.
Can we add this in a resume when we go for placement
No you cannot. This is just for learning OOP
can u tell me how can i inject this code in GUI format?
You can create classes with same name and paste the code from github
Did u created gui for this. Can u plz tell me how
How it possible to heal player to with your code i think its not possible if yes can you explain it
It's just a project to understand oop
That's why i am asking your just override method heal in player2 but there is no use . If there is no use with that method why should we created and overrided
@@bhavanisankarreddyguntaka3214 I left that and later realized this, you can give more flexibility to player2 if you want
@@_eazyalgo okay done
thanks
Consider subscribing :)
Can we add this to mini project
You can add, but it might not provide value to resume, its just for clearing concept regarding OOP
Sir Why I run your code still error?
Email me @ abhay10june1999@gmail.com with detailed explanation of issue
How to play this game other person not coder please tell me
You need a coder friend then
@@_eazyalgo tum bata sakte ho ki hame ese kuch condition laga ke methods chalye ki f press karne gun1 se fire ho aur g press karne par gun 2 se fire ho aisa kuch kar sakte h
@@_eazyalgo if you can do it then make a short video on it if not than sorry for my comment
@@Bhuiyar_18 this is a great idea by the way, will definitely try to work on it.
Ok
Hi!
It seems that the heal() method does not work on player 2 for me.
This is what i do:
1) Shoot with gun
2) heal
3) shoot with gun again
Now after the heal command, it says "health is 100 but after shooting the second time it is evident that it didnt work since is health is equivalent to having been shot twice.
Is this because heal() method is declared in the player 1 class and cant acces the private variable health in the player2 class?
Vary nice tutorial, I am greatful for your response.
Ok
Sir i tried making this but when I run the main class code it shows error expected and error not a statement. Please help sir
Email me the error and the screenshot @abhay10june1999@gmail.com
@@_eazyalgo sir actually I'm trying to do this project in my phone in dcoder ide since I don't have any computer so I'm gonna send you the screenshot
@@_eazyalgo sir i sent you
Sir may i know the system features ; project scope & operating environment
This is project has no value on its own, I just showed how softwares/apps are made using object oriented design.