i don't know about the runtime but it will surely take more time to write the code in OOP, at least for me, than writing a program using procedures. structures have their advantages in certain problems but using oop all the time will eventually make me say "oops" every 5 min or so.
On May 19, 5:24 pm, Akhil <[email protected]> wrote: > Does having an absolutely Object Oriented Approach, to solve problems > affect run-time & performance ? > > I mean, since OOP has it's overheads, does this translate into poorly > performing code ? > > something like... > > MyAlgorithm m = new MyAlgorithm(); > File input = new file(); > File output = new File(); > while ( more_test_cases ) { > TestCase tc = new TestCase(); > tc.readValuesFromFile(File f); > m.runOn(tc); > tc.writeAnswerToFile(output); > > } > > What is your opinion ? > > -- > You received this message because you are subscribed to the Google Groups > "google-codejam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-code?hl=en. -- You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
