Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I change arrayType to user defined class? #56

Open
miseon119 opened this issue Jul 14, 2022 · 0 comments
Open

Can I change arrayType to user defined class? #56

miseon119 opened this issue Jul 14, 2022 · 0 comments

Comments

@miseon119
Copy link

Not int or float. I want to use class which is I defined. Plus, I don't use any list or dictionary type inside my class.

class Array(object):
    ''' sizeOfArray: denotes the total size of the array to be initialized
       arrayType: denotes the data type of the array(as all the elements of the array have same data type)
       arrayItems: values at each position of array
    '''
    def __init__(self, sizeOfArray, arrayType = int):
...

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant