Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99791 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41622 invoked from network); 6 Jul 2017 08:11:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2017 08:11:59 -0000 Authentication-Results: pb1.pair.com header.from=khaweronline@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=khaweronline@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.45 as permitted sender) X-PHP-List-Original-Sender: khaweronline@gmail.com X-Host-Fingerprint: 209.85.214.45 mail-it0-f45.google.com Received: from [209.85.214.45] ([209.85.214.45:34159] helo=mail-it0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/F8-15131-EC0FD595 for ; Thu, 06 Jul 2017 04:11:59 -0400 Received: by mail-it0-f45.google.com with SMTP id v202so25869972itb.1 for ; Thu, 06 Jul 2017 01:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=m0HrmWWfB5S0wJwBYvq2ppE6apiy41/+jhLZlQr9ZPk=; b=soNthRcP72vpO9Bgw4v9gF6PGmdgFKN9XB28cMTEU3y4zMue23EyYVrcyiRGkasatl OcI+9m/AWFU1i36ELI59Bbn+f17o1opmhkwAsxnXCrVvlZchrXGtYDQscmRJdxsNuonJ +1yBIJBVYMS4g/x1233yfKUvJH9jxAG9Ie9WTsaK9AZavF98slMufZnt7vPr/KJwOu3I gO3x7kHatCwg0p+/dCoGgDImDSssvGSfqWipVUW0BbTrTeSaSr9oESfoDeXY3P1bJEHo 1vuuK0C0CxUb6vu5926gChK09vEWiFBjYPry8XTg3RA5CMvAZ5/JGGA4lAl/6PYSm6eu H3vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=m0HrmWWfB5S0wJwBYvq2ppE6apiy41/+jhLZlQr9ZPk=; b=rfucA3G6GCsuDXwSpSGbkDxUbPsvshhOlBgx1YQHdQcaWqcNcDuWVzsHGwx3nVWRNm 1VQSHlCsmuQ+iWfcTdq5KtKOGhH6BILmq7/prlmDOsMKEO9n2Xx3kQAm0QfctNG5rNDb +feIDj9yCbSBDMf8vC2Ir03LvAq2mFCcNvBTn21tSDH7BG6SNKHmIn44AcgKOk/DtH7M z+GLFtr+1I1CcOXeL+HDk9wqzxuzZFilV6I+3FKlv4nXD+/FR8gZ5uyvjokRknhWMPBQ 5oT6kkiEX2WnW7kAaSv4HmOX60GXSrKM697tISNMyZKuBXI6EbCu6rofr2bQ6W8VDZjC dihg== X-Gm-Message-State: AIVw112V1xXpe2dqaS0kIe/mRf4K98exzWJBtYKjaoj8xMHbzu9VUOHf VDM+eKYinK9KLYxx238eJfzdEFZOAEJI X-Received: by 10.36.237.12 with SMTP id r12mr8332047ith.45.1499328715074; Thu, 06 Jul 2017 01:11:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.169.12 with HTTP; Thu, 6 Jul 2017 01:11:54 -0700 (PDT) Date: Thu, 6 Jul 2017 13:11:54 +0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="f403045cc9cc76bf670553a1ab7d" Subject: Partial Classes From: khaweronline@gmail.com ("Khawer .") --f403045cc9cc76bf670553a1ab7d Content-Type: text/plain; charset="UTF-8" Partial Classes If we are using same class for different purposes we can extend it, and add new properties and methods. But we will also have to use new class name, when we create objects. C# provides a better concept "Partial Classes". Why not to also implement it in PHP? Example: Partial Class abc { public function sayhi() { echo "Hi"; } } Partial Class abc { public function sayhello() { echo "Hello"; } } Q: What will happen if both classes contain same method names? A: We will show error method already exists. Q: Will it break any existing code? A: No, there will be no impact on any existing coding because we are not changing anything. --f403045cc9cc76bf670553a1ab7d--