What are Virtual Methods?

Started by
12 comments, last by Tradone 18 years, 1 month ago
http://javaboutique.internet.com/articles/ITJ/qanda/q20.html
excellent description of oo vs procedural
almost there :(

edit:
http://www.aquaphoenix.com/research/oop/page10.html
another excellent source.
I think I just about got it, this website aquaphoenix has superb real life examples.

[Edited by - Tradone on March 12, 2006 7:10:50 PM]
Advertisement
I am reading a good book on C++ oop Visual C++ .NET Step by Step, but still can not distinguish between classes / objects / instances.
'object' and 'instance' refer to the same thing. A 'class' is the blueprint for these.

class Person {  int age;  std::string name;};// That defines the 'class', which is simply the concept of a Person.Person tradone; // This is an instance.


Or, if you prefer, a class is a kind of type; an object (or instance) is a kind of variable (which is of a class type).
I see, so a class is like a template,
and the object is like the real thing.

now they call it object oriented programming.
please correct my definition.
oop = "programming style in which the data and the flow of data is the main focus."

This topic is closed to new replies.

Advertisement