Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 4358 Name mansoor Date/Time 10-Mar-2020 03:59:44 PM

Copy text from below
<?php
class Account{
private $name;
private $AccNo;
private $mobileNo;
private $balance;

function __construct($name, $AccNo, $mobileNo, $balance){
$this->name = $name;
$this->AccNo = $AccNo;
$this->mobileNo = $mobileNo;
$this->balance = $balance;
}

function getName(){
echo $this->name;
}

function withdraw($amount){
if ($this->balance < $amount) {
echo "Bhai Paise nai hai!";
}else
{
$this->balance -=$amount;
echo "Amount Rs. ".$amount." Withdrawn";
}
}

function deposite($amount){
$this->balance += $amount;
echo $amount." Amount deposited <br>";
}
}

$sajid = new Account("Sajid", "0001", "03121234567", 100);
$adil = new Account("Adil", "0002", "03121234567", 1000);
$ali = new Account("Ali", "0003", "03121234567", 1000);
$malook = new Account("Malook", "0003", "03121234567", 1000);

echo $sajid->getName(); echo "<br>";

$sajid -> deposite(1000);

$sajid->withdraw(1000);













?>




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
4460 drop 21-Jan-2021 04:01:50 PM
4459 asda 21-Jan-2021 03:54:27 PM
4458 asda 21-Jan-2021 03:54:05 PM
4457 zeb.xml 20-Jan-2021 10:33:38 PM
4456 zeb 20-Jan-2021 10:32:54 PM
4455 WEBvIEW 20-Jan-2021 05:34:52 PM
4454 osm_phone 19-Jan-2021 05:47:37 PM
4453 ii 18-Jan-2021 02:03:04 PM
4452 Ikram audio 18-Jan-2021 01:17:34 PM
4451 AWS 17-Jan-2021 04:22:27 PM
4450 row.xml 15-Jan-2021 03:40:59 PM
4449 parm table 12-Jan-2021 04:05:42 PM
4448 andriod 08-Jan-2021 03:29:57 PM
4447 AMK2 08-Jan-2021 03:05:46 PM
4446 AMK 1 08-Jan-2021 03:05:25 PM
4445 link 07-Jan-2021 11:35:05 PM
4444 test 05-Jan-2021 10:24:22 AM
4443 file up flas 05-Jan-2021 10:23:49 AM
4442 NRG Benjyfis 04-Jan-2021 04:04:39 AM
4441 Os 01-Jan-2021 10:04:46 PM
4440 post 01-Jan-2021 12:16:39 PM
4439 afaq 01-Jan-2021 11:27:02 AM
4438 python_flask 28-Dec-2020 02:05:29 AM
4437 link 24-Dec-2020 03:27:25 PM
4436 internet 16-Dec-2020 06:08:27 PM
4435 http 16-Dec-2020 06:05:59 PM
4434 uuu 14-Dec-2020 10:36:15 AM
4433 dd 12-Dec-2020 11:00:00 PM
4432 23 12-Dec-2020 10:54:41 PM
4431 94 12-Dec-2020 10:40:18 PM

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 [Next] [Last]
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com