Dear Chuchun,
 
Are you talking about mhs-distribution-list, mhs-message-store in this specification? These are Information Objects of OBJECT-CLASS Information Object Class, not the extended classes of OBJECT-CLASS. Author of this document has used user-friendly syntax like SUBCLASS OF, MUST CONTAIN, MAY CONTAIN so that these look like sub-classes of OBJECT-CLASS; these are not the keywords of ASN.1. Basically, the author of this document has very smartly used Information Object Classes to simulate inheritance. So, I guess, I was wrong, you can really simulate inheritance like this. :)
 
Rajul
 
 
-------------------------------------------------------------------------
Hi
  I found that information object class supported inheritance in Module MHSDirectoryObjectsAndAttributes (X.402:06/1999)
(http://www.itu.int/ITU-T/asn1/database/itu-t/x/x402/1999/MHSDirectoryObjectsAndAttributes.html)who can interpret that to me,thank you.





======= 2002-09-30 22:40:00 您在来信中写道:=======

>Hi,
>
>Information Object Classes are not exactly like the classes of object
>oriented languages. These don't support inheritance, or any static members.
>However, you can define functions using information object classes (This
>also is not like methods in C++ or Java classes)
>
>For example,
>
>FUNCTION ::= CLASS {
>    &Type,
>    &ResultType    DEFAULT NULL,
>    &code          INTEGER UNIQUE
>}
>
>Then you can have information objects of above class just like functions.
>
>add FUNCTION ::= {
>    &Type SEQUENCE { first INTEGER, second INTEGER },
>    &ResultType INTEGER,
>    &code       1
>}
>
>multiply FUNCTION ::= {
>    &Type SEQUENCE { first INTEGER, second INTEGER },
>    &ResultType INTEGER,
>    &code       2
>}
>
>....
>....
>
>You can get more information about this from lot of places on the web.
>www.oss.com has two ASN.1 books available for free download, which contain
>very good info about Information Object Classes.
>
>Rajul
>
>----- Original Message -----
>From: "chuchun" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, September 27, 2002 9:11 PM
>Subject: [ASN.1] the problem about information object class of ASN.1
>
>
>> I want to define object with ASN.1,but I am not sure whether information
>object class can define object oriented.say,can information object class
>show inheritance and contain static property and function? Thank you .
>>
>>         chuchun
>>         [EMAIL PROTECTED]
>>           2002-09-28
>>
>>
>>
>>
>>

= = = = = = = = = = = = = = = = = = = =


        致
礼!
 

        chuchun
        [EMAIL PROTECTED]
          2002-10-08





Rajul Gupta
OSS Nokalva
[EMAIL PROTECTED]
1-732-302-9669 (x-137)
http://www.oss.com

Reply via email to