<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>perlcodesample</author_name>
  <author_url>https://blog.hatena.ne.jp/perlcodesample/</author_url>
  <blog_title>Perl入門ゼミ</blog_title>
  <blog_url>https://perlcodesample.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Perl › オブジェクト指向 › 構文 › package クラスを作成方法を解説します。 1. クラスを作成するにはパッケージ宣言を行う。 Perlではクラスを作る特別な構文はありません。パッケージ宣言をすることでクラスを作成します。 package Book; これで、Bookクラスが出来上がります。 2. クラスの雛形 コンストラクタとアクセッサ もの型クラスの場合の雛形はこんな感じです。オブジェクトを作成するためのコンストラクタとオブジェクトのフィールドにアクセスするためのアクセッサから構成されます。 package Book; sub new { # コンストラクタの実装 } su…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20090316%2F1237124917&quot; title=&quot;クラスの作成 - package - Perl入門ゼミ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-03-16 22:48:37</published>
  <title>クラスの作成 - package</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20090316/1237124917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
