Or you could say that a class is a plan for an object and an object is what results when the plan has been carried out.
Object-Oriented programming consists of three stages:
main()
method which is used
to start the program running.main()
method and starts running it.
main()
is static
it can start running even
though no objects have been created, yet.The stage where the compiled program is running is called run time. Your program is like the script of a play. The work that you describe in your program (or play) is performed after you have finished the description and put it in the hands of the CPU (or actors). At run time (show time), Things Happen. Your beautiful program comes to life. Data is read in; calculations are performed; files are written.
Object Oriented Programming is like assembling a team of human workers to get a job done:
(Thought question:) You have decided to open a pizza delivery business consisting of yourself and several employees. What job descriptions will these employees have?