Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Kilkukrotne dziedziczenie.
Kirtan Loor
post 29.10.2006, 22:40:45
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 22.10.2004
Skąd: Płock

Ostrzeżenie: (0%)
-----


Witam, czy możliwe jest, by jedna klasa mogła naraz dziedziczyć kilka klas od razu? Mianowicie, czy istnieje taka formula (lub podobna):
  1. <?php
  2. class klasa extends klasa1, extends klasa2..
  3. {
  4. //...
  5. }
  6. ?>


czy tez musze pisac:

  1. <?php
  2. class klasa extends klasa1
  3. { }
  4.  
  5. class klasa extends klasa2
  6. {
  7. //...
  8. }
  9. ?>


--------------------
A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes
Portants surcots et justes cottes,A cuidereaux d'amour transis,
Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Sabistik
post 29.10.2006, 22:51:33
Post #2


Administrator wortalu


Grupa: Przyjaciele php.pl
Postów: 960
Pomógł: 39
Dołączył: 21.10.2003
Skąd: Kraków

Ostrzeżenie: (0%)
-----


php nie rozpoznaje wielodziedziczenia w żaden z wymienionych sposobów.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.08.2025 - 23:23