COnFuSIoUs
12-05-2001, 10:11 PM
hey, I posted a message about VB and C++ a while ago, but ima little confused, I haven't had any formal train in programming yet, so I don't know the terms
what exactly makes an object oriented language different from a non object oriented language?
please use simple terms if possible :) I'm only 15 :)
Thinker
12-05-2001, 10:26 PM
Object oriented languages try to deal with a programming problem by looking
at it in terms of real-world objects. Non-object oriented languages deal
with it in terms of steps that need to be followed to get the solution. This
is also called procedural programming. Both C++ and VB can be used to do
both kinds of programming. VB has some limitations in the OOP area and
C++ is very complicated when it comes to Windows OOP (which means
programming with COM, the component object model.)
If I want to make a program to handle elevators in a building, I can look at it
either as a series of things that need to happen when people push buttons,
or I can look at it as simulating an elevator in my program. If I look at it
that way, I will start by making a list of all the possible properties of the
elevator and then a list of the things that can be done to an elevator, and
I would also think about the things that the elevator does. Then I will
translate these lists into lists of properties, methods, and events in my
elevator class. If I have taken everything into consideration, I can then
make as many elevator objects in my program as I need to handle the
programming problem. They will all function the same way, and yet, will
function independent of each other. This is a simple example of OOP.
COnFuSIoUs
12-08-2001, 02:56 PM
thanx a lot, I think I get the idea now..