Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neloy-ahmed/f151eceba8cd2ef66232cfe84fe4cf78 to your computer and use it in GitHub Desktop.
Save neloy-ahmed/f151eceba8cd2ef66232cfe84fe4cf78 to your computer and use it in GitHub Desktop.
<?php
abstract class World{
abstract public function show_population($country_name);
abstract protected function draw_map($country_name);
//Fatal error: Abstract function World::draw_flag() cannot be declared private
abstract private function draw_flag($country_name);
public function show_info(){
print "This is an abstract class for World";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment