include parent::child
$var = "top level"
class parent {
  $var = "from parent"
  $hostname = "hostname from parent"
}

class parent::child inherits parent {
  $var = "from parent::child"
  notice ( "parent::var => ",$parent::var )
  notice ( "var         => ",$var )
  notice ( "hostname    => ",$hostname )
  notice ( "::hostname  => ",$::hostname )
}
