Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,209,362 members, 8,005,803 topics. Date: Monday, 18 November 2024 at 11:12 AM |
Nairaland Forum / Science/Technology / Programming / Application Development Using Csharp (C#) (10147 Views)
Csharp Question: My Debug Wont Work, How Do I Solve This? / Learn Mobile Development Using Flutter LIVE / Are You at beginners Or Mid-level With Web Development Using Python? See This! (2) (3) (4)
(1) (2) (3) (4) (5) (Reply) (Go Down)
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 8:56pm On Dec 21, 2017 |
Sorry for the wait.... First, one thing we need to understand is the fact that object oriented programming in general is designed in such a way that the programmer has to create objects and assign a function/method to the objects. More like creating an object and writing codes to tell what you want the object to to. For example, I create an object called “Mr. Driver” and I have to write a code to tell Mr. Driver to drive and/or where to drive to and where to stop. That is what methods and functions would do. Before all of these starts to sound complicating, I’ll like to reverse us back to understanding the concepts behind that. And that is why we would be talking about classes and objects before we move on to methods and constructors. |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 8:56pm On Dec 21, 2017 |
When you define a class, you define a blueprint for a data type. This does not actually define any data, but it does define what the class name means. That is, what an object of the class consists of and what operations can be performed on that object. Objects are instances of a class. The methods and variables that constitute a class are called members of the class. Defining a Class A class definition starts with the keyword class followed by the class name; and the class body enclosed by a pair of curly braces. |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 9:01pm On Dec 21, 2017 |
This is what a class would look like. Access specifier would determine the kind of access you want to assign to the object either private, public, protected and so on. (We’ll get to that part too) Class name of course is the name of the class Datatypes are the keywords used in declaring variable e.g int, float, double, string and so on. This is a typical example of what a class look like. I’ll be open to entertain questions on your curiosities <access specifier> class class_name { // member variables <access specifier> <data type> variable1; <access specifier> <data type> variable2; ... <access specifier> <data type> variableN; // member methods <access specifier> <return type> method1(parameter_list) { // method body } <access specifier> <return type> method2(parameter_list) { // method body } ... <access specifier> <return type> methodN(parameter_list) { // method body } } |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 9:12pm On Dec 21, 2017 |
Access specifiers specify the access rules for the members as well as the class itself. If not mentioned, then the default access specifier for a class type is internal. Default access for the members is private. Data type specifies the type of variable, and return type specifies the data type of the data the method returns, if any. To access the class members, you use the dot (.) operator. The dot operator links the name of an object with the name of a member. |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 9:15pm On Dec 21, 2017 |
This is a typical example of the skeletal codes I posted above for better understanding of what access specifier and datatypes are Ask Questions if you don’t understand any part using System; namespace BoxApplication { class Box { public double length; // Length of a box public double breadth; // Breadth of a box public double height; // Height of a box } class Boxtester { static void Main(string[] args) { Box Box1 = new Box(); // Declare Box1 of type Box Box Box2 = new Box(); // Declare Box2 of type Box double volume = 0.0; // Store the volume of a box here // box 1 specification Box1.height = 5.0; Box1.length = 6.0; Box1.breadth = 7.0; // box 2 specification Box2.height = 10.0; Box2.length = 12.0; Box2.breadth = 13.0; // volume of box 1 volume = Box1.height * Box1.length * Box1.breadth; Console.WriteLine("Volume of Box1 : {0}", volume); // volume of box 2 volume = Box2.height * Box2.length * Box2.breadth; Console.WriteLine("Volume of Box2 : {0}", volume); Console.ReadKey(); } } } 1 Like |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 7:32pm On Dec 28, 2017 |
It’s hard to proceed without getting questions. Am I alone or is it boring? Let me know. Until then, you guys can further read on classes and methods. |
Re: Application Development Using Csharp (C#) by Nicolars(m): 7:47pm On Dec 28, 2017 |
omoluabiguy:You are not alone |
Re: Application Development Using Csharp (C#) by 4kings: 8:10pm On Dec 28, 2017 |
You're not alone bro... Been following since my first post. |
Re: Application Development Using Csharp (C#) by error4040: 11:19pm On Dec 29, 2017 |
Re: Application Development Using Csharp (C#) by Nobody: 11:39am On Feb 08, 2020 |
omoluabiguy: Good day bro, I just stumbled on this thread when I was making a google search for c#. Pls bro, i know you might be busy & the last update was in over 2years ago due to nonfollowership, but can u resurrect this thread by updating it? it means a lot to me(I like the simplicity) as I intend concentrating fully on c#. omoluabiguy, I earnestly await your positive feedback |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 2:27pm On Apr 27, 2020 |
Akiliogidi: Thats fine, I'm resurrecting it and would be following up with a youtube channel for video tutorials. I have been busy with career and life but i want to keep teaching this skills. Please subscribe to my youtube channel for video tutorials and I will be feeding this page here with written tutorials as well. https://www.youtube.com/channel/UCwNrlP_X_VV4vg00P2QmDnw |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 2:37pm On Apr 27, 2020 |
C# is a strongly typed language and what do I mean strongly typed? Every data that you want to use or reference to would require a "type" declaration by C#. For example, if you want to declare a text data type such as a name or sentence, We would need to use the string data type to declare that. string name = "John"; for numbers, we would use integer: int result = 20; and we also have other data types such as double, float, decimal, Boolean, var, dynamic and many more. We can also use a class as a type but that is an advance topic and we would definitely get there as we proceed. string name = "John"; console.WriteLine(name); Console.ReadLine(); This would print out John. I would be making video tutorials to follow up on my explanations here. Please subscribe to my youtube channel to motivate me because without you guys, it would be a dry page and channel. I want to help you guys to become engineers from the scratch. https://www.youtube.com/channel/UCwNrlP_X_VV4vg00P2QmDnw 2 Likes |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 8:38pm On May 08, 2020 |
1 Like |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 12:18am On May 10, 2020 |
1 Like |
Re: Application Development Using Csharp (C#) by Nobody: 8:01pm On May 10, 2020 |
omoluabiguy: Thank you so much bro for resurrecting the thread, I am following.... |
Re: Application Development Using Csharp (C#) by Nobody: 8:04pm On May 10, 2020 |
omoluabiguy: Thanks bro, keep it up, I will check out the videos Pls can u recommend a budget HP laptop solely for programming? |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 10:57pm On May 10, 2020 |
Akiliogidi: If you can get a laptop with 8GB ram, that’ll be good enough to start off. 1 Like |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 10:57pm On May 10, 2020 |
1 Like |
Re: Application Development Using Csharp (C#) by Nobody: 12:56pm On May 11, 2020 |
omoluabiguy:Nice one, any reason u opted for VS 17 against the latest version? |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 3:13pm On May 11, 2020 |
Akiliogidi: The latest version is only updated to support the new .Net Core framework, other than that, they can do everything else like 2017. So for a beginner, 2015 or 2017 is fine! You have to be a very senior engineer to understand what the latest version can do and that’s not a necessary information for a starter. 1 Like |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 10:24pm On May 11, 2020 |
1 Like |
Re: Application Development Using Csharp (C#) by Nobody: 6:09pm On May 13, 2020 |
omoluabiguy: Bro what about also explaining it here in the form of texts as u promised, at least for pple who may not be able to watch the video(due to one reason or the other). Nice work though |
Re: Application Development Using Csharp (C#) by wine4dguy: 6:31pm On May 13, 2020 |
Okay, so I just came across this thread and feel that Omoluabi is a great guy for starting up this thread. I am also a ASP.NET developer I can confirm that he is doing a great job teaching this. That being said I think you should focus more on data manipulation using EF since learners will most definitely lose appetite when it comes to not finding data to work with(I dont know if you understand what I mean) |
Re: Application Development Using Csharp (C#) by Nobody: 6:49pm On May 13, 2020 |
wine4dguy: Thanks for d suggestion bro, abeg come down to basic level by using simple term , u can also chip in to make the thread active... Omoluabiguy , hope I am not crossing my boundary sha |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 7:39pm On May 13, 2020 |
wine4dguy: Thanks for the recognition, but like I said in my opening video, I am assuming my audience are people with little to no knowledge of programming at all and that being said, there are a lot of basics that needs to be cleared before moving up to using frameworks and data manipulation. I actually feel that is a bit advance for stack beginners. Variables basic principles of OOP needs to be understood before Frameworks and data manipulation would make any sense. I understand you are a developer already but as this thread proceed, we’ll eventually get to EF stage and even higher advanced stage.ls than that! Stay tuned and keep the suggestions coming. |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 7:41pm On May 13, 2020 |
Akiliogidi: No you are not crossing any boundary, the essence of this thread is to learn and feel free to ask any questions you want. I can give as much text details as possible on here, but the video would do a lot more explanations including practical excercises to match the explanations. I hope that makes sense to you. |
Re: Application Development Using Csharp (C#) by Nobody: 8:46pm On May 13, 2020 |
omoluabiguy:It makes sense bro, I have downloaded ur videos & videos from others & I like ur detailed explanations(just learnt how to use m for monetary input using decimal data type) Though I have not started coding coz no laptop for now(lockdown don skyrocket prices here). Sometimes I do code with my phone ide, but it is limited. |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 9:01pm On May 13, 2020 |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 9:01pm On May 13, 2020 |
Akiliogidi: Keep coding regardless. The only way to learn is to practice � |
Re: Application Development Using Csharp (C#) by wine4dguy: 10:10pm On May 14, 2020 |
omoluabiguy:Okay that's understandable � keep up the good work 1 Like |
Re: Application Development Using Csharp (C#) by wine4dguy: 10:19pm On May 14, 2020 |
Akiliogidi:My apologies bro I will be more comprehensive as we progress 1 Like |
Re: Application Development Using Csharp (C#) by omoluabiguy(m): 7:13pm On May 15, 2020 |
1 Like |
Developing An Operating System - What Are The Prerequisites / Create A Nested Lists Of Categories In Laravel 5 / What Is Xvideoservicethief?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 54 |