Add exams from exam156 to exam199
This commit is contained in:
19
exam194/constructor.php
Normal file
19
exam194/constructor.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class Example{
|
||||
|
||||
public function __construct($something)
|
||||
{
|
||||
$this-> SaySomething($something);
|
||||
}
|
||||
|
||||
public function SaySomething($something){
|
||||
echo $something;
|
||||
}
|
||||
}
|
||||
|
||||
$example = new Example('Some text');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user