Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: Flickering Pin
musefan2-Dec-10 5:11
musefan2-Dec-10 5:11 
GeneralRe: Flickering Pin
peropata2-Dec-10 5:38
peropata2-Dec-10 5:38 
GeneralRe: Flickering Pin
Luc Pattyn2-Dec-10 6:43
sitebuilderLuc Pattyn2-Dec-10 6:43 
GeneralRe: Flickering Pin
peropata2-Dec-10 7:10
peropata2-Dec-10 7:10 
AnswerRe: Flickering Pin
Luc Pattyn2-Dec-10 4:10
sitebuilderLuc Pattyn2-Dec-10 4:10 
GeneralRe: Flickering Pin
musefan2-Dec-10 4:15
musefan2-Dec-10 4:15 
GeneralRe: Flickering Pin
Luc Pattyn2-Dec-10 4:22
sitebuilderLuc Pattyn2-Dec-10 4:22 
QuestionBeginners help with classes Pin
kruegs352-Dec-10 2:43
kruegs352-Dec-10 2:43 
OK, I'm having a hard time trying to understand the reasoning behind classes and I think it is due to a lack of an example that really helps me relate to why a class would be helpful in my code. I typically develop using data from a database. One of the lessons I read for creating a class uses a used car lot as an example. A used car lot has lots of cars with different makes, models, years, color, so you would create a "car" class with each of those properties and you can do things like: car.model = "honda", or car.color = "red". If I were to write an app for this, I would have a "car" table in the database with make, model, etc. fields. Then I would use SQL to insert, update, or query the data directly. Why would you create an instance of a class and assign data to all the properties of the class, if the data is not actually being stored. Maybe this example is just to show how a class works and not really practical? Can someone please provide a better explanation or example?
AnswerRe: Beginners help with classes Pin
Hiren solanki2-Dec-10 2:55
Hiren solanki2-Dec-10 2:55 
AnswerRe: Beginners help with classes Pin
Luc Pattyn2-Dec-10 2:59
sitebuilderLuc Pattyn2-Dec-10 2:59 
AnswerRe: Beginners help with classes Pin
musefan2-Dec-10 3:13
musefan2-Dec-10 3:13 
GeneralRe: Beginners help with classes Pin
kruegs352-Dec-10 3:28
kruegs352-Dec-10 3:28 
GeneralRe: Beginners help with classes Pin
musefan2-Dec-10 3:38
musefan2-Dec-10 3:38 
GeneralRe: Beginners help with classes Pin
PIEBALDconsult2-Dec-10 8:25
mvePIEBALDconsult2-Dec-10 8:25 
AnswerRe: Beginners help with classes Pin
#realJSOP2-Dec-10 3:21
mve#realJSOP2-Dec-10 3:21 
GeneralRe: Beginners help with classes Pin
kruegs352-Dec-10 3:45
kruegs352-Dec-10 3:45 
GeneralRe: Beginners help with classes Pin
Jeff Connelly2-Dec-10 4:53
Jeff Connelly2-Dec-10 4:53 
GeneralRe: Beginners help with classes Pin
DaveyM692-Dec-10 9:30
professionalDaveyM692-Dec-10 9:30 
AnswerRe: Beginners help with classes Pin
V.2-Dec-10 23:31
professionalV.2-Dec-10 23:31 
QuestionExecuteNonQuery Problem Pin
Erdinc272-Dec-10 1:40
Erdinc272-Dec-10 1:40 
AnswerRe: ExecuteNonQuery Problem PinPopular
Hiren solanki2-Dec-10 1:46
Hiren solanki2-Dec-10 1:46 
GeneralRe: ExecuteNonQuery Problem Pin
Eddy Vluggen2-Dec-10 1:53
professionalEddy Vluggen2-Dec-10 1:53 
GeneralRe: ExecuteNonQuery Problem Pin
Erdinc272-Dec-10 2:05
Erdinc272-Dec-10 2:05 
AnswerRe: ExecuteNonQuery Problem Pin
musefan2-Dec-10 1:47
musefan2-Dec-10 1:47 
GeneralRe: ExecuteNonQuery Problem Pin
musefan2-Dec-10 6:25
musefan2-Dec-10 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.