![]() |
![]() This page contains programming related information
This
web site is best viewed
|
So what is an object... simply put, an object is a variable. But this variable is very special. A normal variable would be able to hold only one information. For example, in C++ programming, defining "int x;" means you have a variable called "x" and it can hold one data type of the form integer. This is the tricky part. Our special variable can hold more than one type of variable... something like a structure. So I can have a variable of "int x;" and "char y;" inside my variable. To access these variables, I simple just equate a = exam.x or a = exam.y, where exam is my object. That's not all (otherwise it would be a structure in itself), it can also store "functions". So I can execute these functions, say, exam.ProcessGrades(score); which in this case, will execute ProcessGrades function which is pre-written inside the variable. I hope this simplifies the understanding of objects. A few technical terms to get you moving:
MFCs & Visual C++ Unfortunately, I don't really have the time to write on these issues. However, there is a great site that teaches you everything on it. Click on the button below and it'll bring you directly there. Send my regards to Zafir Anjum (creater of codeguru.com) and Chris Maunder while you are there.
![]()
![]() |
![]() |
|