Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP OOP - Abstract Classes

<?php
abstract class ParentClass {
  abstract public function someMethod1();
  abstract public function someMethod2($name, $color);
  abstract public function someMethod3() : string;
}
?>
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #PHP #OOP #Abstract #Classes
ADD COMMENT
Topic
Name
1+3 =