OC, Zhongshan oc

Source: Internet
Author: User

OC, Zhongshan oc

OC-First Class

 

 

Class Name: Car

Attribute: Number of tires, speed

Behavior: Run

 

Write a complete Class: class declaration and implementation

 

 

1. Class Declaration

 

Code:

// NSObject is added to the Foundation framework

# Import <Foundation/Foundation. h>

// NSObject base class

@ Interface Car: NSObject

{

// Declare object attributes (member variables, which are initialized to 0 by default)

@ Public

Int wheels; // Number of tires

Int speed; // speed

}

 

// Method (behavior)

// As long as it is an oc object method, it must begin with a minus sign and start with a plus sign as a Class Method

// Any data type in the oc method must be enclosed in parentheses ().

// Parentheses () in the oc method: used to enclose the Data Type

-(Void) run;

@ End

 

 

2. Class implementation

Code:

@ Implementation Car

 

// Method implementation

-(Void) run

{

NSLog (@ "the car is running ");

}

@ End

 

 

Int main ()

{

// In oc, if you want to execute some behaviors, write the brackets [behavior performer behavior name].

// Create an object using the class

// Execute the new action of the Car class to create a new object

// Define a pointer Variable p, p pointing to an object of the Car type

// [Car new] creates a new object and returns the new object itself (the address of the new object)

Car * p = [Car new];

P-> wheels = 4;

P-> speed= 250;

// Send a run message to the object pointed to by p

[P run];

Return0;

}


What is OC in foreign trade?

The cargo owner should arrange the transportation to the inland Overland Continental.

Abbreviation of Foreign Trade Terms

English full name

A/W All Water
Asia NorthAmerica EastboundRate
B/L Bill of Lading
B/R Buy Price Buying Rate
BAF fuel surcharge Bunker AdjustmentFactor
C & f cost plus sea FREIGHT COST AND FREIGHT
C. C freight to pay Collect
C. S. C Container Service Fee Container Service Charge
C. Y. Container Yard
C/(CNE) Consignee
C/O Certificate of Origin
CAF Currency exchange rate surcharge Currency Adjustment Factor
CFS bulk warehouse Container Freight Station
CFS/CFS bulk delivery (start/end)
CHB Customs Broker Customs House Broker
Cif cost, INSURANCE plus sea freight COST, INSURANCE, FRIGHT
CIP freight, Insurance Paid To the destination Carriage and Insurance Paid
COMM Commodity
CPT freight Paid To the destination Carriage Paid
CTNR cabinet Container
CY/CY full Cabinet delivery (start/end)
D/A Acceptance ticket Document Against Acceptance
D/O Arrival notification Delivery Order
D/P Payment delivery Document Against Payment
DAF border delivery Delivered At Frontier
DDC Destination port code fee Destination Delivery Charge
DDP delivery after Tax Payment Delivered Duty Paid
DDU tax-free delivery Delivered Duty Unpaid
DEQ destination port delivery Delivered Ex Quay
DES destination port delivery on Ship Delivered Ex Ship
Doc # Document Number
Position Surcharges
Ex factory delivery Work/ExFactory
F/F Freight Forwarder
FAF Fuel surcharge Fuel AdjustmentFactor
Various FAK products Freight All Kind
Shipping at FAS port Free Alongside Ship
FCA goods delivery Carrier Free Carrier
FCL Full Container Load
Feeder Vessel/Lighter barge voyage
FEU 40 'Cabinet type Forty-Foot Equivalent Unit 40'
FMC Federal Maritime Commission
FOB onboard delivery Free On Board
GRI full price increase General RateIncrease
H/C proxy fee Handling Charge
HBL sub-ticket House B/L
Inside Sales in I/S
IA ...... remaining full text>

What is OC in foreign trade?

The cargo owner should arrange the transportation to the inland Overland Continental.

Abbreviation of Foreign Trade Terms

English full name

A/W All Water
Asia NorthAmerica EastboundRate
B/L Bill of Lading
B/R Buy Price Buying Rate
BAF fuel surcharge Bunker AdjustmentFactor
C & f cost plus sea FREIGHT COST AND FREIGHT
C. C freight to pay Collect
C. S. C Container Service Fee Container Service Charge
C. Y. Container Yard
C/(CNE) Consignee
C/O Certificate of Origin
CAF Currency exchange rate surcharge Currency Adjustment Factor
CFS bulk warehouse Container Freight Station
CFS/CFS bulk delivery (start/end)
CHB Customs Broker Customs House Broker
Cif cost, INSURANCE plus sea freight COST, INSURANCE, FRIGHT
CIP freight, Insurance Paid To the destination Carriage and Insurance Paid
COMM Commodity
CPT freight Paid To the destination Carriage Paid
CTNR cabinet Container
CY/CY full Cabinet delivery (start/end)
D/A Acceptance ticket Document Against Acceptance
D/O Arrival notification Delivery Order
D/P Payment delivery Document Against Payment
DAF border delivery Delivered At Frontier
DDC Destination port code fee Destination Delivery Charge
DDP delivery after Tax Payment Delivered Duty Paid
DDU tax-free delivery Delivered Duty Unpaid
DEQ destination port delivery Delivered Ex Quay
DES destination port delivery on Ship Delivered Ex Ship
Doc # Document Number
Position Surcharges
Ex factory delivery Work/ExFactory
F/F Freight Forwarder
FAF Fuel surcharge Fuel AdjustmentFactor
Various FAK products Freight All Kind
Shipping at FAS port Free Alongside Ship
FCA goods delivery Carrier Free Carrier
FCL Full Container Load
Feeder Vessel/Lighter barge voyage
FEU 40 'Cabinet type Forty-Foot Equivalent Unit 40'
FMC Federal Maritime Commission
FOB onboard delivery Free On Board
GRI full price increase General RateIncrease
H/C proxy fee Handling Charge
HBL sub-ticket House B/L
Inside Sales in I/S
IA ...... remaining full text>

Related Article

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.