using System;
class MyClass
{
public int a=3;//类成员声明为pulic
}
class Test
{
public static void Main()
{
MyClass myclass=new MyClass();
int b=myclass.a;//可以在Test类中访问MyClass的成员a
Consol
Attribute VB_Name = "public"
Public B_COMPORT As Byte '抄表设置通讯口
Public send_count As Byte '发送命令的长度
Public MARK As Byte '发送到表的通讯开始(1)
Public SEND_MARK, end_s As Boolean
'前者为每条命令开始发送标记(TRUE),后者为全部通讯
/*++
Copyright (c) 2004 Chingachguk & Denger2k All Rights Reserved
Module Name:
public.h
Abstract:
This module contains the common declarations shared by driver
and user appl
//: C05:Public.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Public is just like C's struct
import javax.swing.*;
public class LookAndFeel{
public static void main(String[] args){
JFrame F = new MainFrame();
F.setVisible(true);
} // end of main
}//end of class LookA
import javax.swing.*;
import java.awt.event.*;
public class ToolBarAction extends AbstractAction{
public ToolBarAction(String name,Icon icon){
super(name,icon);
}
public void act
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class MainFrame extends JFrame{
JDesktopPane desktop;
JMenuBar MBar;
JToolBar toolBar;
public M