How To Code An ATM Console App In C# | Programming Tutorial For Beginners | Visual Studio 2022

  Рет қаралды 94,389

Shaun Halverson

Shaun Halverson

Күн бұрын

Hey Everyone!
In today's video, we discuss how to code an ATM Application in C#. ATMs are simple and easy to use banking terminals that we use in our daily lives. Practicing coding real life things such as this can improve your skills quickly and make it easier to tackle other projects. Enjoy!
Add Me On Discord!
--------------------------------------------------------------------------------------
Username: Shaun(Hashtag)5626
Software Engineering / Programming for beginners / variables types / computer science /compsci / coding for beginners / learn how to program / learn how to code / C# variables / python for beginners / coding tutorial / programming tutorial
Thanks for watching! :)
Want to see more? Click on this spicy link :D
/ @shaunhalverson
Assets in the thumbnail were provided by artists on
www.canva.com
All art and copyright ownership belongs to the artists on Canva and is under the protection of the Canva pro membership.
#programming #tutorial #learntocode

Пікірлер: 117
@UzairAliShahOfficial
@UzairAliShahOfficial 2 жыл бұрын
Very nicely explained, thank you. I am trying to learn C# and make as many projects using C#. I have subscribed. Thank you again 😊 👏
@ShaunHalverson
@ShaunHalverson 2 жыл бұрын
Thank you for watching!
@masqueradinglampshade4369
@masqueradinglampshade4369 7 ай бұрын
Videos like these showing simple projects are very useful for people coming from another programming language to understand the syntax of a new language. Thanks!
@martinjosephello6253
@martinjosephello6253 Жыл бұрын
YOU JUST SAVE ME FROM MY MISERY !! THANK YOU SO MUCH YOU DESERVE MORE SUBS !!
@zajac4817
@zajac4817 5 ай бұрын
I love such "code-along" series. Two years later, but still, thanks!
@JamesTembo
@JamesTembo 6 ай бұрын
i followed everything, a few Error, but managed to resolve them and all is Good...Thank you!!
@giorgichikovani4129
@giorgichikovani4129 2 жыл бұрын
Well done! Keep going with interesting console projects!
@ShaunHalverson
@ShaunHalverson 2 жыл бұрын
Thank you! :)
@vinaykumarnavik3378
@vinaykumarnavik3378 Жыл бұрын
I hv started c# few months back but not yet so confident bcoz I haven't did any kind of project ,so this was v.helpful .Thanks a ton .Would request you to make some more like this one in order to gain knowlegde and confident as well .
@tatoquiros2945
@tatoquiros2945 Жыл бұрын
hey, how going it?
@jetbob309
@jetbob309 2 жыл бұрын
Awesome tutorial. Would be cool to do another project similar but adding a design pattern such as MVC or Layered Pattern. Thanks again :)
@user-tq9qp5vx8o
@user-tq9qp5vx8o 6 ай бұрын
😐
@abrahambriones2843
@abrahambriones2843 Жыл бұрын
Great stuff man. It would be awesome if you did similar tutorials with MVC and WPF
@andyhanson872
@andyhanson872 2 жыл бұрын
I’ve never really understood the {get; set;} thing despite reading/watching about it 1000 times. I followed your tutorial here and thought “wtf are all these short, repetitive methods?” Then it hit me! HOLY SHIT THIS IS WHAT GET; SET; IS! Not sure if teaching that was your intention, but it was a big moment for me. Thanks. Request: connecting to SQL. ( I’ve tried 3 different ways and I still suck)
@ShaunHalverson
@ShaunHalverson 2 жыл бұрын
Yo that’s awesome that I was able to show the value behind having those! I can’t remember if that was intended or not lol
@EduardoRodrigues-ev7ej
@EduardoRodrigues-ev7ej 2 жыл бұрын
Please, can you explain to me? I mean, why are these GET methods returning the objects?
@omaralaa6839
@omaralaa6839 Жыл бұрын
@@EduardoRodrigues-ev7ej From what i know GET is used to return and show the value to the user whenever is called From the other hand, SET is used to modify the value before returning it to the caller He didn’t return any object but returned attribute (info such as pin) of cardHolder object such as currentUser.balance as referring to balance of that specific object I hope it helps ❤
@htaehxela
@htaehxela Жыл бұрын
same here, that get and set thing had been a mystery for ages. Now it makes perfect sense.
@EduardoRodrigues-ev7ej
@EduardoRodrigues-ev7ej Жыл бұрын
@@omaralaa6839 KZbin didn't warn me about your reply, it definitely helps, thanks!!
@user-sp2qp1ru5g
@user-sp2qp1ru5g 11 ай бұрын
Heyy. Can I ask why for FirstOrDefault in currentUser = cardHolder.FirstOrDefault(a => a.cardNum == debitCardNum); is marking it as an error? (I use Visual Studio 2022) Thanks for any help
@reenyindiego5584
@reenyindiego5584 2 жыл бұрын
Thank you so much for this video, it's really simple and easy to understand and I had so much fun practicing all these😃🙌.
@ardijankajtazi3461
@ardijankajtazi3461 Жыл бұрын
Hey shaun nice video, i wanted to know why you aren't using properties instead of making a method for every variable :)
@BrandonChawane
@BrandonChawane 10 ай бұрын
i did mine a bit differently...most of my logic was in a class rather than main, but this was very informative. Thank you
@sudipadhikari7388
@sudipadhikari7388 3 ай бұрын
Good combination of Properties, List & Exception Handling
@Havii
@Havii 2 жыл бұрын
Hell yeah dude, awesome tutorial!
@ozanbaskaya3630
@ozanbaskaya3630 2 жыл бұрын
Hello Shaun, I just start learning C# and want to fill my GitHub with projects. Your videos are really helping me to achieve that. I just want to ask a question, there is a comment "check against our db" and below that a => a.cardNum == debitCardNum code.But I can't reach a.cardNum.It does not show it and gives error. Why is that?
@sam974fe
@sam974fe 2 жыл бұрын
it's because the cardNum is a private member of the class so you can't have access to it outside of the class. So if you want to access it, you need to use your getter, so a.getNum()
@namename-vs3kj
@namename-vs3kj 8 ай бұрын
Hi Shaun, thanks for your hard work on this I've got a quick question and I would appreciate it if you look into this, so as a beginner I know that we use getters and setters to access a private class, however, I noticed you are using getter, setter even though the class is public can you explain why is that? Many thanks for considering my request. vBalayan
@seedc4484
@seedc4484 Жыл бұрын
Just wanted to ask if it ok to write every void function in main. I wanted to make logic in different class and then call void funcitions in main but i have no idea how to call them. I wanted to refresh object programming but i have no idea if this is correct way
@michaellourens5727
@michaellourens5727 Жыл бұрын
Hi there, I was wondering if you could help me understand something . When you refer to: (a => a, cardNum == debitCardNub); Is the a=>a representing the cardNum and debitCardNub ? And could I not use this same method for the pin ? (b=> b , userPin == newPin);
@leojohn6702
@leojohn6702 9 ай бұрын
Why String instead of string? I am new to c#. Capital letter to data type?
@nerdy.guy_yt
@nerdy.guy_yt 2 жыл бұрын
i dont know about anything else but this guy, is truely a meme lover, bro you are a men of culture
@antonios5174
@antonios5174 2 жыл бұрын
Thank you alot man. This was really really helpfull!
@TimCodePH
@TimCodePH 5 ай бұрын
Thanks bro I've learn a lot in this video and I use some of my existing knowledge like instead of concatenating I use string interpolation and I'm still lacking when it comes to OOP do you have any tips to master OOP?
@BrandonChawane
@BrandonChawane Жыл бұрын
This was a great tutorial. Thank you Shaun
@luciferMorningstar-ko9qc
@luciferMorningstar-ko9qc Жыл бұрын
I got 2 errors Cs1061 for the FirstorDefault Cs1656 cause it can’t assign get pin because it’s a method group
@poswake
@poswake Жыл бұрын
I got the same errors. How did you resolve them?
@winnieb3324
@winnieb3324 Жыл бұрын
@@poswake @lucifer Morningstar put using System.Linq;
@rhtservicesllc
@rhtservicesllc Жыл бұрын
As a c# developer there are a number of things I see wrong in this video. Per convention, c# Properties, Classes, and Methids are to be named using Pascal Case. Code violates the Separation of Concerns principle by having everything in the same file. Nesting function definitions inside of the Main method should not be done Variables are being declared outside of the scope where they actually need to be declared, this can be utilized for other things when they should not be Definitely needs changes to be acceptable for C# coding standards
@Solanixhanti
@Solanixhanti 2 жыл бұрын
channel deserves more view, hot content here
@adrianfabian6694
@adrianfabian6694 Жыл бұрын
Great tutorial. Thank you for the walk through.
@ddt9978
@ddt9978 2 жыл бұрын
Really nice video, I'm learning about inheritance and polymorphism, is there any way that I can try and add them into this program? I highly appreciate your answer.
@barzhikevil6873
@barzhikevil6873 Жыл бұрын
Great tutorial, thanks a lot!
@ЮрійВовчук-е7ы
@ЮрійВовчук-е7ы 2 жыл бұрын
Hi. Thank you for your lesson. I have aquestion at 12:16 - how do you get access to variable "a.cardNum" if its Modifire is a "private"?
@sam974fe
@sam974fe 2 жыл бұрын
if would have failed at execution, to acess it, he would have to use the getter he previously declared 😉
@veroxy3467
@veroxy3467 Жыл бұрын
nice one , definitely usefull for a beginner to learn practical oop
@arlie.sk8780
@arlie.sk8780 Жыл бұрын
can anyone explain me, how did first name last name, pin in db automatically set to currentUser.pin, currentUser,firstName etc
@marcinlinka9350
@marcinlinka9350 Жыл бұрын
Hi Thanks for amazing tutorial. I have small problem. Even I was exactly the same code as yours I have lots of errors in my compilation. All happened after I use Save AS option. What happened it is easy explanation. Thank u
@user-nk2lw5rj7u
@user-nk2lw5rj7u 7 ай бұрын
Yo that's was awesome homie. thank you
@sharpazn
@sharpazn Жыл бұрын
I have a question regarding the beginning state of Visual Studio. Why don't you keep the using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks, the namespace, the internal class and the Main? I did a beginner course and we always kept it and my teacher never explained what it does
@abdullahajeebi
@abdullahajeebi Жыл бұрын
They are unnecssery usings.
@Abdulla_tech
@Abdulla_tech Жыл бұрын
I get error CS1555: Could not find 'Program' specified for Main method?
@bryanthemoose8673
@bryanthemoose8673 Жыл бұрын
Lovely tutorial but I personally think you should write the positive part where if someone does have a enough money you put that in the if and if they don't you put that in the else but whatever
@anikaanjum4949
@anikaanjum4949 2 жыл бұрын
Thank you bruh! ❤️❤️
@celinaindhur3286
@celinaindhur3286 4 ай бұрын
loveee these tutorials
@justhannah3110
@justhannah3110 Жыл бұрын
Thank you very much.
@martinthernlund
@martinthernlund 3 ай бұрын
I'm just here to tell my students to be wary of copying entire projects and hand them in as their assignment.
@arhamkhanvlogs.5491
@arhamkhanvlogs.5491 2 жыл бұрын
Hey, I’m facing some kind of errors !! Please check it.
@jetpuckrat9819
@jetpuckrat9819 2 жыл бұрын
Why cant i call Functions from the same class without writing "className.FunctionName();" and I have to reference the class in a virable in the main method "var className = new classnametype" You seem like you do it without referring to the class
@NotTheHeroStudios
@NotTheHeroStudios Жыл бұрын
I love how the first 4 mins it was just boiler plate code XD fuck man I love C#
@viktoriamoskalenko8869
@viktoriamoskalenko8869 9 ай бұрын
Hey guys, Do anyone have a problem : Error CS0841 Cannot use local variable 'currentUser' before it is declared ATM Error CS0136 A local or parameter named 'currentUser' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter ATM
@planetsj527
@planetsj527 6 ай бұрын
yes, i cant figure it out, i tried declaring it in the Main method, but its still no working? super confused. did you figure it out?
@victorafolabi6811
@victorafolabi6811 2 жыл бұрын
Very good, however I had a little problem following your solution. I used a pin of 0000 for one of my entries, when running my program If I input 0, 00 or 000, it doesn’t catch the error
@rhtservicesllc
@rhtservicesllc Жыл бұрын
Because pin is declared as an integer. Thus "0000" is the same as "0". Pin should be a string instead of an integer.
@JtotheB
@JtotheB 9 ай бұрын
why use list instead of an array?
@BleedgamesYT
@BleedgamesYT 2 жыл бұрын
The best❤️
@Zaniel_
@Zaniel_ Жыл бұрын
How would you make a function to register a new user?
@fajom9886
@fajom9886 2 жыл бұрын
Could you do it with windows forms?
@amysticalentity7910
@amysticalentity7910 2 жыл бұрын
Thanks a lot for this! My grades are saved XD
@PatrizioMilione
@PatrizioMilione Жыл бұрын
Thanks bro!
@zotek7487
@zotek7487 Жыл бұрын
Great tutorial
@SYNTH_GT
@SYNTH_GT 17 күн бұрын
im at 8:07 just putting this her to remember
@mazinmuslih8874
@mazinmuslih8874 Жыл бұрын
thank you
@ed-ou812
@ed-ou812 Жыл бұрын
I never saw where you created setup the currentUser.
@OhSoMomo
@OhSoMomo 10 ай бұрын
Thank you.
@ChandanSharma-ud4zv
@ChandanSharma-ud4zv 2 жыл бұрын
Really Nice 👍
@barbad5552
@barbad5552 Жыл бұрын
how can i have these codes??? (i want to analyze them)
@WU-HU-XI-LIAN-DA_STRIKE
@WU-HU-XI-LIAN-DA_STRIKE 2 жыл бұрын
I hear some people say all method's should begin with a capital
@rhtservicesllc
@rhtservicesllc Жыл бұрын
For C# that is correct. Same for class names and property names. The code presented here would not pass a code review
@cosmictcb
@cosmictcb 10 ай бұрын
"I'm sorry, but you should probably upgrade." There are many reasons why, in a professional environment, upgrading is not always an option.
@adeizayusuf
@adeizayusuf 2 жыл бұрын
instead of creating different getters and setters, why dont you use properties?
@lee5150
@lee5150 2 жыл бұрын
I thought that. This is very long winded. It’s also very messy. It’s more procedural than OPP.
@no_nick.4
@no_nick.4 Жыл бұрын
Thank you'👌👌👌👌
@mohammedshoebahmed3543
@mohammedshoebahmed3543 Жыл бұрын
can you provide the code?
@krzysztof1373
@krzysztof1373 2 жыл бұрын
Thank you
@ShaunHalverson
@ShaunHalverson 2 жыл бұрын
Thank you for watching!
@bazilsheikh6074
@bazilsheikh6074 Жыл бұрын
Thanky you
@reymelynanajao
@reymelynanajao Жыл бұрын
The List cardHolders = new List (); cant run because of this pls someone help me🙏😩
@manishakhan4696
@manishakhan4696 Жыл бұрын
use this > using System.Collections.Generic;
@sauceit4297
@sauceit4297 2 жыл бұрын
I'm 10min into the video I'm a total beginner I understand what's going on, but not fully
@ShaunHalverson
@ShaunHalverson 2 жыл бұрын
Anything that doesn't make sense to you that I could help clear up? Have any questions?
@suleyman2981
@suleyman2981 10 ай бұрын
it dint work with me its full blank :(
@yalekhuemichael1025
@yalekhuemichael1025 2 жыл бұрын
I do not understand this 2 lines 1, void Deposit(CardHolder current user) 2, current user.SetBalance(deposit);
@eduardapalmeida7777
@eduardapalmeida7777 2 жыл бұрын
In the first one, he's creating the Deposit method and passing the object that contains all the current user information. In the second one, he explained it was a mistake, the correct way to do it is at 17:36
@AbdulRahman-92089
@AbdulRahman-92089 Жыл бұрын
hello bro please i need the sourcecode for mt College project
@SmoHuffmister
@SmoHuffmister 2 жыл бұрын
You are confusing the declaration of variables with initialization in the first minute of the video, these differences are very important for people who are learning.
@Akas766
@Akas766 2 жыл бұрын
great
@paternoosa4589
@paternoosa4589 11 ай бұрын
why my pin is always incorrect?
@paternoosa4589
@paternoosa4589 11 ай бұрын
i mean userPin
@Farid_Fr
@Farid_Fr 7 ай бұрын
Beautiful, non-existent oh
@Unknown-ki8yk
@Unknown-ki8yk 2 жыл бұрын
Why are you writing in Java way in C#? You do not need to write functions for accessing the fields. This is old style.
@malmossa
@malmossa Жыл бұрын
thank you for the effort. but this is far from best practices !! and conventions.
@DakaloKwinda-u6y
@DakaloKwinda-u6y Жыл бұрын
code please
@ayadabdullah178
@ayadabdullah178 Жыл бұрын
Plz can you send me those code
@BrockHager
@BrockHager Жыл бұрын
i want money!
@timhortons5056
@timhortons5056 2 жыл бұрын
Friend the code??? Please
@adeizayusuf
@adeizayusuf 2 жыл бұрын
you will learn more typing it . its not much
@imgood8519
@imgood8519 2 жыл бұрын
@@adeizayusuf i got error
@kize32
@kize32 Жыл бұрын
Nice code. It gives only 65 errors.😅
@basharabdulah8505
@basharabdulah8505 Жыл бұрын
Why all this rush there is beginners here dislike
@Lone-Wolf516
@Lone-Wolf516 Жыл бұрын
i got 61 errors in this code, when i copied it exactly, not once, but twice, waste of time
@washere3955
@washere3955 7 ай бұрын
Was the code correct, like did you miss type something?
@marktikhonov8495
@marktikhonov8495 Жыл бұрын
Bruh what happened to the coding style? This is not Java totorial, why would you make a tutorial with such an ugly peace of code?
@brunofrancis6188
@brunofrancis6188 Жыл бұрын
Amazing video, sent you a discord friend request!
The Perfect C# Console Application...Or Not.
59:20
IAmTimCorey
Рет қаралды 72 М.
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 78 МЛН
Bike vs Super Bike Fast Challenge
00:30
Russo
Рет қаралды 23 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 19 МЛН
How To Code A Web Scraper In C#  | Programming Tutorial For Beginners
12:06
Every single feature of C# in 10 minutes
9:50
Train To Code
Рет қаралды 127 М.
3 Types of Projects That Will Make You a Programmer
8:12
Andy Sterkowitz
Рет қаралды 1 МЛН
C# Project for Beginners Create an ATM Console Application
2:22:30
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
Programming a Tetris Game in C# - Full Guide
39:34
OttoBotCode
Рет қаралды 200 М.
C# From scratch: Phonebook console application
31:13
Fullstack Dev
Рет қаралды 27 М.
Learning C# In A Week... Otherwise I Fail University
9:04
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 371 М.