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 1005965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:22:54+00:00 2026-05-16T08:22:54+00:00

From a quick Google search and a the wikipedia article on Multiple Inheritance, which

  • 0

From a quick Google search and a the wikipedia article on Multiple Inheritance, which quotes:

Multiple inheritance refers to a feature of some object-oriented programming languages in which a class can inherit behaviors and features from more than one superclass. This contrasts with single inheritance, where a class may inherit from at most one superclass.

I understand that PHP doesn’t allow multiple inheritance. What I can’t find a clear answer on, however, is whether it allows more than one class to extend a superclass. Example:

class a {}
class b extends a {}
class c extends a {}

In terms of what I’m trying to do, I’m making an RPG and want a ‘generic’ character class to include all the methods and properties that make the template of a character. Then I want classes to include specifics for each type of character (warrior, mage, etc), such as stats modifiers and special attacks.

Is this possible?

  • 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-16T08:22:55+00:00Added an answer on May 16, 2026 at 8:22 am

    Yes, it’s perfectly possible. The entire purpose of inheritance is that multiple children can inherit common functionality from a parent.

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You almost had it: myprog | tee >(ap1) >(ap2) >(ap3)… May 16, 2026 at 11:45 am
  • Editorial Team
    Editorial Team added an answer See pdf-renderer The PDF Renderer is just what the name… May 16, 2026 at 11:45 am
  • Editorial Team
    Editorial Team added an answer Are you sure that you have set both in the… May 16, 2026 at 11:45 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

A quick Google search of this issue shows it's common, I just can't for
So a quick Google search for fflush(stdin) for clearing the input buffer reveals numerous
I have an NSOperation which fetches some objects from a core data persistent store
I am giving TextMate a try for some quick editing of a few script
I'm a newbie in this vast world of programming. I've been given some codes
I hear different things from different people on that topic and nobody is really
I'm trying to select data from a table defined similar to the following :
What's the best way to call R functionality from within Java? I'm looking for
While trying problem 41 from the Euler Project, I ran across what seems to
I'm working on a very, very quick and dirty application using almost entirely scaffold

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.