Skip to content
Snippets Groups Projects
Commit ac5309c2 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

Merge branch 'dev' into 'master'

Test push

See merge request sibidharan/php-class-project!7
parents 953bbca3 c49540d0
No related branches found
No related tags found
No related merge requests found
...@@ -22,28 +22,28 @@ include 'libs/load.php'; ...@@ -22,28 +22,28 @@ include 'libs/load.php';
// echo "Fail"; // echo "Fail";
// } // }
$mic1 = new Mic("Roda"); //constructing the object // $mic1 = new Mic("Roda"); //constructing the object
$mic2 = new Mic("HyperX"); //constructing the object // $mic2 = new Mic("HyperX"); //constructing the object
Mic::testFunction(); //no construction, no destruction. // Mic::testFunction(); //no construction, no destruction.
testFunction(); // testFunction();
$mic1->setLight("White"); // $mic1->setLight("White");
$mic2->setLight("Green"); // $mic2->setLight("Green");
print(ucwords("hyper quad cast")); // print(ucwords("hyper quad cast"));
$mic1->setModel("hyper quad cast"); // $mic1->setModel("hyper quad cast");
print("Model of 1st mic is ".$mic1->getModelProxy()); // print("Model of 1st mic is ".$mic1->getModelProxy());
print("\n".$mic1->getBrand()); // print("\n".$mic1->getBrand());
print("\n".$mic2->getBrand()); // print("\n".$mic2->getBrand());
echo $mic1->getVoltage("hello", array(1,2,3,4,5), new Mic("Bose")); // echo $mic1->getVoltage("hello", array(1,2,3,4,5), new Mic("Bose"));
echo $mic1->setUpVoltage("hi", new Mic("cast"), [1,2,3]); // echo $mic1->setUpVoltage("hi", new Mic("cast"), [1,2,3]);
print("\n".$mic->price); // print("\n".$mic->price);
print("\nValue of 10+12 is ".$mic1->add(10, 12));
print("\nThis is mono font inside pre tag \n");
// print("\nValue of 10+12 is ".$mic1->add(10, 12));
// print("\nThis is mono font inside pre tag \n");
print("Hello World");
?> ?>
</pre> </pre>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment