VBS Tutorial: VBscript statement-Class statement

Source: Internet
Author: User

Class statement

Declare the name of a class and define the variables, attributes, and methods that constitute the class.

Class Name
Statements
End Class

Parameters

Name

Required.ClassAccording to the standard variable naming conventions.

Statements

Required. One or more statements are definedClass.

Description

InClassThe Member is declaredPrivateOrPublic. If it is declared as PrivateClassThe block is visible. Declared as Public not onlyClassThe block is visible inside.ClassCode outside of the block is also visible. Not usedPrivateOrPublicExplicitly stated by default:Public. It is declaredPublicProcess (SubOrFunction.PublicVariables will become attributes of the class.Property Get,Property LetAndProperty SetExplicitly declared attributes are the same. The default attributes and methods of classes are used in their Declaration section.DefaultKeyword. For more information about how to use this keyword, see the topic of a separate statement.

Requirements

Version 5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.