 |
Ask A Scientist©
Computer Science Archive
|
 |
Object Oriented Programming (OOP)
Index Key: COM043
Author: andrew m childs
Subject: Object Oriented Programming (OOP).
How does object oriented programming work? Specifically, what separates C
form C++? Why does it seem necessary that one understand OOP before trying
to program in Windows?
Response #: 1 of 1
Author: sysop
Well, they are similar in that both use the C language. They are different
in that C++ expands on C. In Object Orientated Programming (OOP), you create
objects. These objects are used to create new objects. Then your programs
call these objects. If you want to improve a program, you just need to
change the objects, not the whole program.
Windows is big on OOP's because it uses large classes of objects. You make
calls to create a window of x,y or you create a scroll list, etc. You do
not need to design these objects, you just use them. Then if the object is
ever redone, you just need to recompile.
There is more to OOP, but I hope this helps.
NEWTON is an electronic community for Science, Math, and Computer Science K-12 Educators.
Argonne National Laboratory, Division of Educational Programs, Harold Myron, Ph.D., Division Director.