Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 542283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:25:49+00:00 2026-05-13T10:25:49+00:00

Basic OOP question… I want to add a couple functions to the Array class

  • 0

Basic OOP question…

I want to add a couple functions to the Array class so that my program will be amazing and make me rich and famous overnight.

So I create a new subclass NewArray which extends Array. Do I need to write a constructor method for NewArray? If I leave it blank will it just use the parent’s (Array’s) constructor method?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:25:50+00:00Added an answer on May 13, 2026 at 10:25 am

    Yes, if you leave it blank it’ll use the super-class’ default constructor, which in the case of an Array is actually a constructor with a default value set:

    Array(numElements:int = 0)

    So by default you’ll be creating an array with zero elements, which I guess is probably what you want anyway.

    And don’t forget this note from the docs:

    You can extend the Array class and override or add methods. However, you must specify the subclass as dynamic or you will lose the ability to store data in an array.

    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(I think this is a pretty basic question on OOP, but unfortunately I wasn't
Basic question here - I have many lines of code that look something like:
Basic C# syntax question: So I have this class public class BrandQuery<T> : Query<T>
Basic array question: $string = The quick brown cat; $check1 = apple; $check2 =
Basic question.. had to ask. Any help will be appreciated. Q: Why can't I
I have a basic question in Java, but it's a general question in OOP.
I'm fairly new to OOP in PHP, I've made a couple of basic scripts
I'm brand new to OOP and I have a question that's gotta be pretty
I'm sure this is a basic OOP question -- I'm designing a message-passing system
I have a basic oop question: I use (for example in the sharepoint development)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.