Mail::SPF::Base(3) User Contributed Perl Documentation Mail::SPF::Base(3)NAME
Mail::SPF::Base - Base class for Mail::SPF classes
SYNOPSIS
use base 'Mail::SPF::Base';
sub new {
my ($class, @options) = @_;
my $self = $class->SUPER::new(@options);
...
return $self;
}
DESCRIPTION
Mail::SPF::Base is a common base class for all Mail::SPF classes.
Constructor
The following constructor is provided:
new(%options): returns Mail::SPF::Base
Creates a new object of the class on which the constructor was invoked. The provided options are stored as key/value pairs in the new
object.
The "new" constructor may also be called on an object, in which case the object is cloned. Any options provided override those from
the old object.
There are no common options defined in Mail::SPF::Base.
Class methods
The following class methods are provided:
class: returns string
Returns the class name of the class or object on which it is invoked.
Class methods
The following class methods are provided:
make_accessor($name, $readonly): returns code-ref
Creates an accessor method in the class on which it is invoked. The accessor has the given name and accesses the object field of the
same name. If $readonly is true, the accessor is made read-only.
Instance methods
There are no common instance methods defined in Mail::SPF::Base.
SEE ALSO
Mail::SPF
For availability, support, and license information, see the README file included with Mail::SPF.
AUTHORS
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
perl v5.16.2 2013-08-25 Mail::SPF::Base(3)
Check Out this Related Man Page
Mail::SPF::Base(3) User Contributed Perl Documentation Mail::SPF::Base(3)NAME
Mail::SPF::Base - Base class for Mail::SPF classes
SYNOPSIS
use base 'Mail::SPF::Base';
sub new {
my ($class, @options) = @_;
my $self = $class->SUPER::new(@options);
...
return $self;
}
DESCRIPTION
Mail::SPF::Base is a common base class for all Mail::SPF classes.
Constructor
The following constructor is provided:
new(%options): returns Mail::SPF::Base
Creates a new object of the class on which the constructor was invoked. The provided options are stored as key/value pairs in the new
object.
The "new" constructor may also be called on an object, in which case the object is cloned. Any options provided override those from
the old object.
There are no common options defined in Mail::SPF::Base.
Class methods
The following class methods are provided:
class: returns string
Returns the class name of the class or object on which it is invoked.
Class methods
The following class methods are provided:
make_accessor($name, $readonly): returns code-ref
Creates an accessor method in the class on which it is invoked. The accessor has the given name and accesses the object field of the
same name. If $readonly is true, the accessor is made read-only.
Instance methods
There are no common instance methods defined in Mail::SPF::Base.
SEE ALSO
Mail::SPF
For availability, support, and license information, see the README file included with Mail::SPF.
AUTHORS
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
perl v5.16.3 2014-06-10 Mail::SPF::Base(3)
Hi friends,
The derived class cannot access the base class's variables in my program. You can have a look at my code, I am actually using class templates.
#include <iostream>
using namespace std;
template <class T>
class Sum
{
friend void Check(Sum &s, T a, T b)
{
T x,... (2 Replies)
There is base class B, and two derived classes D1 and D2 derived from Base. Base class B, have two data members ( public or protected or private or if any). D1 should inherit both these data members, and D2 should be deriving only one member from Base class. Is this kind of design possible without... (1 Reply)
Hello,
I just came to the object part in JavaScript, which is the instance of the object can be iterated by the for-loop (or with-loop):
function Car(seat_sth, engine_sth, radio_sth) {
this.seats = seat_sth;
this.engine = engine_sth;
this.radio = radio_sth;
}
var work_car =... (0 Replies)