# Define a class
package Foo;

use Object::Tiny qw{ bar baz };

sub age{}

1;

# Use the class
my $object = Foo->new( bar => 1 );

print "bar is " . $object->bar . "\n";

package Bling;

our @ISA = 'Foo';

use Object::Tiny qw{ age };

my $obj = Bling->new( age => 13 );

print "bling age is ". $obj->age, $/;


=comment

package UI;

use Object::Tiny qw(name);

sub hello {print "superclass hello\n"};

#sub age {print "what's your age?"};

package UI::Graphical;

use Object::Tiny qw(age);

@ISA = 'UI';

sub hello {print "make a window\n";}

package UI::Text;

@ISA = 'UI';

sub hello {print "hello world!\n";}

use lib q(.);
use lib q(..);
use lib q(../..);
use lib q(../../..);
use lib q(../../../..);
my $ui = UI::Graphical->new(age => 10);
print $ui->age();
use lib q(.);
use lib q(..);
use lib q(../..);
use lib q(../../..);
use lib q(../../../..);
use Audio::Ecasound::Flow::Flow;
my $ui = UI->new;
$ui->hello;
my $tui = UI::Text->new;
$tui->hello;
my $gui = UI::Graphical->new;
$gui->hello;
use lib q(.);
use lib q(..);
use lib q(../..);
use lib q(../../..);
use lib q(../../../..);
use Audio::Ecasound::Flow::Flow;
my $ui = UI->new;
$ui->hello;
my $tui = UI::Text->new;
$tui->hello;
my $gui = UI::Graphical->new;
$gui->hello;
use 5.008;
use strict;
use warnings;

our $VERSION = '0.01';


# Preloaded methods go here.
package UI;
our @ISA;
use Object::Tiny qw(dummy);
sub hello {print "superclass hello\n"};

package UI::Graphical;
our @ISA = 'UI';
sub hello {print "make a window\n";}
1;
package UI::Text;
our @ISA = 'UI';
sub hello {print "hello world!\n"}

__END__
# Below is stub documentation for your module. You'd better edit it!

=head1 NAME

UI - Perl extension for blah blah blah

=head1 SYNOPSIS

  use UI;
  blah blah blah

=head1 ABSTRACT

  This should be the abstract for UI.
  The abstract is used when making PPD (Perl Package Description) files.
  If you don't want an ABSTRACT you should also edit Makefile.PL to
  remove the ABSTRACT_FROM option.

=head1 DESCRIPTION

Stub documentation for UI, created by h2xs. It looks like the
author of the extension was negligent enough to leave the stub
unedited.

Blah blah blah.

=head2 EXPORT

None by default.



=head1 SEE ALSO

Mention other useful documentation such as the documentation of
related modules or operating system documentation (such as man pages
in UNIX), or any relevant external documentation such as RFCs or
standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

=head1 AUTHOR

Joel Roth, E<lt>jroth@dsl-verizon.netE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright 2007 by Joel Roth

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself. 

=cut