C# - How to create a class, objects and add members to the class.

  Рет қаралды 142,444

Coffee Cup Dev

Coffee Cup Dev

Күн бұрын

Пікірлер: 67
@jamesbundock4496
@jamesbundock4496 6 жыл бұрын
Without a doubt this video is the most clear concise and precise explanation I have gotten to explain classes, objects, and concepts regarding their scope.
@Coffeecupdev
@Coffeecupdev 11 жыл бұрын
I always record in 720p. Try changing the quality of the video. May take a little longer to load and then you watch it in full screen. Its actually pretty good quality. I am not 100% sure what happening on your side.
@nachoKrinkle
@nachoKrinkle 13 жыл бұрын
Thanks for this. I was looking for down and dirty video to tell me how to access the classes in the class files. You hit the mark!
@Arnovlasrules
@Arnovlasrules 11 жыл бұрын
He explains it better than my teacher! Now I finally understand it! Thx!
@shafiwebdeveloper304
@shafiwebdeveloper304 11 жыл бұрын
Thanks, I was confused about classes and members, now you explained it very clearly. I subscribed to your videos. Please keep posting.
@Healian1980
@Healian1980 12 жыл бұрын
WTH dont stop creating tutorials please u really help me alooooooooooooot thank u very much fabio you are really a PRO
@mohdsohelkhalilahmed5002
@mohdsohelkhalilahmed5002 12 жыл бұрын
i m very thankful to for making a easy tutorials of class object and method....last few weaks i m very confusing about this topics plzz upload more videos....
@jaibu28
@jaibu28 11 жыл бұрын
Nice tutorials! I'm a newbie in programming and your tutorials really help me a lot!
@Johnwingchun
@Johnwingchun 14 жыл бұрын
Great Video. Makes a few things so clear that has taken me ages to get my head around!! Like your teaching style. Cheers!!!!! :)
@garand
@garand 14 жыл бұрын
really clear and to the point. keep up the good work.
@TheDream3873
@TheDream3873 11 жыл бұрын
Very clear explanation that a lot of books just cant seem to get across.
@kishortiwari8943
@kishortiwari8943 9 жыл бұрын
Thank u so much....made me clear about what an object and class are.
@deathscreton
@deathscreton 12 жыл бұрын
Jesus Christ. I finally got the hand of OOP. Your video was the breakthrough. I greatly appreciated. Hopefully, I never forget how this shit works cause if I do, I'mma kiss coding goodbye.
@Coffeecupdev
@Coffeecupdev 12 жыл бұрын
You can create a array of the class, ie: class foo { string book; string author;} void main() { foo[] myArrayofFoo = new foo[10]; } Make sense?
@hoebaman
@hoebaman 12 жыл бұрын
Can I use classes for an Database connection or a Database query? I got a data grid in my application and i'd like my howl project to be object orientated.
@Mael0719
@Mael0719 12 жыл бұрын
How will i use these in an array? for example I need to input 10 authors or 10 booknames?
@kmod9266
@kmod9266 12 жыл бұрын
Awesome video. Just subscribed haha.
@Coffeecupdev
@Coffeecupdev 11 жыл бұрын
Thank you by the way for the compliment! :)
@tigrishabeeb6796
@tigrishabeeb6796 11 жыл бұрын
Fabio Scopel !!!,you are really the best teacher i have seen ,i have a problem in update code that you explained in videos(1 to 5 parts),i have a form contains about 50 textbox and combobox, every combo take the data from tables each one has (ID,Name), i save the ID from the combo in the maintbl,i display data from all those small tables on a form by using select with outer join, into a dgv and textboxes and display the Name from all those tables of (ID,Name), how can i manage updating the maintbl if i want to skip some comboboxes on a form and do not dropdown the combos and select new item from it,how can i take the ID of the name that came from select statment,it takes me error always and do not know pass this rock...thanks a lot Fabio!!
@martingardener
@martingardener 12 жыл бұрын
Also just started learning C# from VB.NET. This makes alot more sense now. I have a project next year that requires more than VB so I guess its time to migrate....
@2ivenhoe
@2ivenhoe 14 жыл бұрын
what is the difference between members, fields and local variables?
@sicariusdracus
@sicariusdracus 10 жыл бұрын
you exploded my mind. Thank you.
@RoyWagemakers
@RoyWagemakers 11 жыл бұрын
And how about generating picturebox inside a class (lets say 10 pb's). and within a other class access them?
@cristi92b
@cristi92b 12 жыл бұрын
Can you create a private static variable in a class?
@aiaek
@aiaek 12 жыл бұрын
Thank you that help me understand it better!
@aeroama
@aeroama 5 жыл бұрын
Simple and to the point
@TheJimmyDonut
@TheJimmyDonut 11 жыл бұрын
I really enjoyed the video. (subbed)
@getreadytotube
@getreadytotube 12 жыл бұрын
You are the man!
@MVANAKB
@MVANAKB 11 жыл бұрын
Your explanations are very good, I would wish Microsoft Help be this way. Thanks
@oamost
@oamost 11 жыл бұрын
Thank you for the clear explanation!
@aliahmad-zz3wv
@aliahmad-zz3wv 12 жыл бұрын
Thank for help mate but can help me with another thing in C# do you know to make some on the right hand side and left hand for example Console.WriteLine("=====Character attribues======="); Console.WriteLine("====*******************===="); Console.ReadLine(); That made it go it middle I am just a beginner so thank so much
@abdolrabieh6812
@abdolrabieh6812 11 жыл бұрын
Thank You. Very good video.
@Mael0719
@Mael0719 12 жыл бұрын
Yep! Thanks!
@m7madonly
@m7madonly 8 жыл бұрын
great video, keep up the good job.
@destinyofamit
@destinyofamit 11 жыл бұрын
How i can best way to release object from memory ?
@jochedev
@jochedev 9 жыл бұрын
Hi. I'm trying to test this out in a simple program, but I don't know what I'm doing wrong. The program has "2" forms. "Form1" contains a text box and a button. When the button is pressed, "Form2" should appear with a label with the text from "textbox1". But its appearing blank. ---------------------------- Form1 Code: namespace project01 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); Form2 frm2 = new Form2(); Class1 invoice = new Class1(); invoice.str_info = textBox1.Text; // etc frm2.Show(); } } } ---------------------------- Form2 Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace project01 { public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { Class1 invoice = new Class1(); label1.Text = invoice.str_info; } } } ---------------------------- Class1 Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace project01 { class Class1 { public string str_info; } } ------------- I'm not sure what I'm doing wrong. Could you help me out?
@Coffeecupdev
@Coffeecupdev 9 жыл бұрын
+Jose Cancel I see what you are trying to do here, the issue is the the "Invoice" in both forms is a different object. When you create a Class1 invoice = new Class1(); in Form1 that Invoice is not the same in Form2, it is in fact a "new" invoice in Form2. There are a few ways to achive what you are trying to do. Constructor in the Form2 would be one way, but if you want to just read the value from a class making it static would do it. Do this, change your Class1 to be public static class Class1{ public static string str_info; } in your Form1 change the click button event to this private void button1_Click(object sender, EventArgs e) { this.Hide(); Form2 frm2 = new Form2(); Class1.str_info = textBox1.Text; // etc frm2.Show(); } in your Form2 private void Form2_Load(object sender, EventArgs e) { label1.Text = Class1.str_info; } paste.ofcode.org/33hfu2GE9Gb7ae5QDQ2Lv9a
@jochedev
@jochedev 9 жыл бұрын
+Fabio Scopel Thanks! It's working perfectly now :)
@ThexBorg
@ThexBorg 12 жыл бұрын
Great video friend!
@mrpoeky2527
@mrpoeky2527 6 жыл бұрын
thx for video :)
@ed110td5
@ed110td5 11 жыл бұрын
Great Video!!
@TizanaMenYo
@TizanaMenYo 9 жыл бұрын
Thx for this video !
@qokhan3463
@qokhan3463 8 жыл бұрын
Fabio , I watched your this video(first) , I like it so much, but ı have a problem you have so many videos.. there is no number or index :p Which I have to watch the video now ? I wanna learn class structure from your videos. Actually ı didnt check your chanennel maybe there is video list (I hope) Btw Thanks you so much for sharing your experience and info :)
@nail_2024
@nail_2024 8 жыл бұрын
thank you , good explain
@inkuban
@inkuban 11 жыл бұрын
You can buy a cheap condenser microphone to cut out the background and static noise.
@OverG88
@OverG88 11 жыл бұрын
Quality is more then good. Go full screen and stop whining.
@OsamaAlWesabi
@OsamaAlWesabi 11 жыл бұрын
Thank you :)
@GrundGad
@GrundGad 12 жыл бұрын
God damn it, i understand !!!
@Fiilis1
@Fiilis1 8 жыл бұрын
Keyboard sounds like it's beaten to crap lol
@Coffeecupdev
@Coffeecupdev 11 жыл бұрын
:)
@h3artn3t25
@h3artn3t25 13 жыл бұрын
Awesome Video! Thanks! CLICK the like Button!
@Joyforme
@Joyforme 12 жыл бұрын
I meant weird*
@TufailKhan-cn7zd
@TufailKhan-cn7zd 6 жыл бұрын
hello sir kiye ap ye leature complete kar de do na plzzzzz (r Teacher and Student. Tasks to do 1) Create a class named Person which has following member va Birth, and Gender. 2) Create child classes of Person as Teacher and Student. The pa have functions to input and output data of each type of pers functions to input data for each child class as (i) function fo and rank (Professor, Associate Professor, Assistant Profess (ii) and function for semester and marks for each student. The above two functions must require current data of each T example, Id: 10, Name: Ali, DOB: 1990/11/07, Gender: Male, 3) The input data functions must write the data on text le and ou the data from text le. 4) Write a function which reads data of a student from text le an number (i.e. promotion from 2nd to 3rd semester and so on) After the increment in semester number, new record of a stu text le. In this way, there will be semester-wise data of a stu output, system must demand student Id or Name and show 5) Write a function to show groupings/cluster of Names based o least one criterion will be from parent class (Person) AND at (Teacher or Student). For example, (a) Classify the Names into various separate/non-overlappin and teaching rank like persons whose age is above 50 a whose age is between 40 and 50 and are Associate Pro Professors, and Lecturers. (b) classify the Names into various separate/non-overlappin gender and marks categorization like persons who are  80%, persons who are females and have marks greate plzzzz sir i request u
@Coffeecupdev
@Coffeecupdev 6 жыл бұрын
Tufail Khan looks like that's your homework.
@TufailKhan-cn7zd
@TufailKhan-cn7zd 6 жыл бұрын
yes sir
@TufailKhan-cn7zd
@TufailKhan-cn7zd 6 жыл бұрын
but you know sir its a 6 assignment and one one part is complete sir plzzzzz i requset u and sir i want to project is teacher and during student
@TufailKhan-cn7zd
@TufailKhan-cn7zd 6 жыл бұрын
plzzzz sir show output
@TufailKhan-cn7zd
@TufailKhan-cn7zd 6 жыл бұрын
sir i will waiting
@MeshMix1
@MeshMix1 11 жыл бұрын
ur xplanations are gud very gud infact but quality of video is soooo poooorrr....fabio can u please upload such videos in good quality.
@klantenservice3087
@klantenservice3087 8 жыл бұрын
fuykkkkkkkkkkkkkkkkkkkkkkkkkk
@Joyforme
@Joyforme 12 жыл бұрын
I can't stand his wired accent, it's rather annoying
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 178 М.
10. How to program in C# - CLASSES - Beginner Tutorial
18:58
Brackeys
Рет қаралды 314 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
C# interfaces 🐟
5:38
Bro Code
Рет қаралды 145 М.
C# Classes Tutorial | Mosh
14:25
Programming with Mosh
Рет қаралды 289 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 313 М.
C# 15 Understanding and Creating Classes in C#.
27:39
Syed Mohammad Arqam
Рет қаралды 30 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
C# - How to LINQ to Objects
8:24
Coffee Cup Dev
Рет қаралды 33 М.
C# - How to add Properties to Classes
10:57
Coffee Cup Dev
Рет қаралды 59 М.
C# classes 📦
4:54
Bro Code
Рет қаралды 88 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН