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

  • Home
  • SEARCH
  • 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 1958558
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T08:21:08+00:00 2026-05-17T08:21:08+00:00

when extending a class, is it impossible to override a method without also matching

  • 0

when extending a class, is it impossible to override a method without also matching the parameters?

for example, i’d like to use the method’s name, in this case it’s a socket extension and the method i want to override is connect. however, i want to request additional parameters that the stock connect function does not request.

is the only alternative to create my own connect-like method with my own parameters, call super.connect from this function and override the stock connect function to throw an error if it’s called?

that all kind of sounds like a train wreck.

  • 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-17T08:21:13+00:00Added an answer on May 17, 2026 at 8:21 am

    Function overloading is not supported in ActionScript (however Darron Schall demonstrated some kind of pseudo overloading in this article).

    I think in your case it’s only left over to create your own connectEx method.

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

Sidebar

Related Questions

How to inject method (using reflection) into super class without extending tested class? I
Okay, here's the situation: I've created a class extending Android's SQLOpenHelper class. I've also
I'd like to create my own class extending array of ints. Is that possible?
I have an abstract class. I'm extending that class. I'm getting this error: Fatal
I have a public abstract class and I'm trying to use the getClass() method,
I'd like to use the same class as a row class and a base
I'm having troubles finding a class name after extending other classes. Here are the
The following is in the initComponent of an extending class: this.checkBoxArray[0].on('check(this.checkBoxArray[0]', false), this.enableAllCheckboxes, this);
I try to use a simple example for better undersanding: I've got a class
This question is related to extending class methods in Ruby, perhaps more specifically in

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.