Visualizzazione dei risultati da 1 a 4 su 4

Discussione: undefined function

  1. #1

    undefined function

    ciao,
    ho un problema che non capisco

    Codice PHP:
    class miaClasse1 {
       
       function 
    class1_funct1() {
          
    // codice
       
    }

    }
    class 
    miaClasse2 extends miaClasse1 {
       
       function 
    class2_funct1() {
          
    $this->class1_funct1();
       }


    perche mi da errore Call to undefined function class1_funct1()

    non capisco.con extends dovrebbe estendere la classe 1 sulla 2 ma non risulta.cosa mi sfugge?




  2. #2
    il costruttore?
    nella seconda classe deve richiamare il costruttore della prima, fatto?
    There are 10 types of people in the world: Those who understand binary, and those who don't.

  3. #3
    mh, no..sono agli inizi e mi sfuggono queste cose.
    grazie provo a fare come hai detto


  4. #4
    There are 10 types of people in the world: Those who understand binary, and those who don't.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.