471,056 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

Using Object Oriented Design approach

I have been developing a application in Python which instantiates objects on the fly. I want to adopt a Object Oriented approach in what I am developing.
So far what I have been doing is

Script 1 does all the argument passing and creates a Hashed data structure which is global. It in turn instantiates script2 on the fly which is passed as command line to which the global hashed data structure is passed.

Now if script2 wants to call a function in script3, can script3 read the global hashed data structure populated by script1 without script2 passing that argument.

Also is this the right way of doing it ? How do I achieve a complete Object Oriented Approach ?

Thanks
Feb 7 '07 #1
1 1441
bartonc
6,596 Expert 4TB
Python specifics regarding OO implementation/design are quite straight-forward and would only require a page or two to discuss. Before we begin, though, I'd like to ask you what you have studied on the general principals and direct your attention to this thread if you haven't really studied OOD/OOP yet. Welcome to the Python Forum on TSDN,
Barton
Feb 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Martin | last post: by
reply views Thread by christopher diggins | last post: by
2 posts views Thread by Krimgelas | last post: by
8 posts views Thread by Dale | last post: by
6 posts views Thread by Angelos | last post: by
5 posts views Thread by Dave Johnson | last post: by
3 posts views Thread by notnorwegian | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.