當前位置:編程學習大全網 - 編程語言 - OC語言中創建了兩個類A,B,在B中定義了壹個A類型的對象a,a可以在B類中的方法裏調用A類的方法嗎?

OC語言中創建了兩個類A,B,在B中定義了壹個A類型的對象a,a可以在B類中的方法裏調用A類的方法嗎?

您好,

<pre class="brush:as3;toolbar:true;"><!DOCTYPE HTML>

<html>

<head>

<meta property="qc:admins" content="164506634465311636" />

<meta property="qc:admins" content="401713367765311636" />

<meta property="qc:admins" content="61701556566401633636375" />

<meta name="baidu-site-verification" content="xE5s1z5NbE0bsA9g" />

<meta name="google-site-verification" content="rE4V27k6w3Acthr25hhBGoURFpLFjlvwyGXFIspIJSo" />

<meta /public/themes/ucaistyle';

var _PUBLIC_ = '/public';

var _LENGTH_ = 140;

var _LANG_SET_ = 'zh-cn';

var $CONFIG = {};

$CONFIG['uid'] = _UID_;

$CONFIG['mid'] = _MID_;

$CONFIG['root_path'] =_ROOT_;

$CONFIG['theme_path'] = _THEME_;

$CONFIG['public_path'] = _PUBLIC_;

$CONFIG['weibo_length'] = 140;

$CONFIG['lang'] = 'zh-cn';

var bgerr;

try { document.execCommand('BackgroundImageCache', false, true);} catch(e) { bgerr = e;}

</script>

<meta /public/themes/ucaistyle/ucai.ico" />

<meta name="keywords" content="zend studio 默認建立的html文件頭怎麽修改 問答 在線答疑 在線學習平臺 在線編程 視頻教程 PHP Javascript iOS Objective-C Android 優才網" />

<meta name="description" content="zend studio 默認建立的html文件頭怎麽修改問答 在線答疑 優才網 是壹個集在線學習,疑難解答,知識積累,課後交流為壹體的綜合在線學習社區" />

<style>

/* Dialog */

.dialog { width: 596px; border-width: 5px; border-style: solid; border-radius: 3px; background: #fff; border-color: rgb(127, 0, 0); border-color: rgba(0, 0, 0, .1); -webkit-background-clip: padding-box; /* for Safari */ background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */ }

.dialog_main { background: #fff; border-radius:3px; }

.dialog_title { padding: 15px; border-top: 1px solid #eee; text-align: left; background: #fff; }

.dialog_close { z-index: 99999; display: inline-block; position: absolute; top: 15px; right: 15px; background: url(/static/i/dialog-closer.png); width: 19px; height: 19px; font-size: 0px }

.dialog_title h3 { font-size:18px; color: #e54715; font-weight:normal; text-align:center; cursor:default; height:34px; border-bottom:3px solid #f15927; margin-bottom:30px; }

.dialog_title h3 .sub { font-size: 12px; color: #656565; padding-top: 5px; margin-left: 20px; font-weight: normal }

.dialog_bd { padding: 20px 0 }

.dialog .note-title { }

.dialog-bd-wrap { width: 596px; text-align: center }

.dialog-bd-wrap .pub-box { width: 554px; margin: 0 auto; border: 1px solid #78B3D2; box-shadow: inset 0 1px 2px 0 #B5DBF0; overflow: hidden; border-radius: 3px; margin-bottom: 10px }

.dialog-bd-wrap .pub-box .pub-area { width: 550px; overflow-y: auto; height: 64px; border: none; resize: none; font-size: 14px; padding: 2px }

.dialog-bd-wrap .pub-box .pub-bar { width: 100%; background: #F5FCFF; border-top: 1px solid #CDE7F4; height: 45px }

.dialog-bd-wrap .pub-box .pub-bar .button { float: right; margin: 10px 10px 0 0 }

.dialog-bd-wrap .node-list { width: 555px; margin: 0 auto; max-height: 300px; overflow-y: auto }

.dialog-bd-wrap .node-list .node-item { border: 1px solid #C1E1F1; padding: 10px; text-align: left; margin-bottom: 10px }

.dialog-bd-wrap .node-list .node-item p { line-height: 1.8 }

.dialog-bd-wrap .node-list .node-item .index { display: inline-block; background: #CAE5F3; font-weight: bold; color: #5E98C5; border: 1px solid #B5DAED; border-radius: 2px; font-style: normal; width: 16px; height: 16px; line-height: 16px; t</pre>

  • 上一篇:欣諭凍幹機,冷凍幹燥機,生物制藥用的,凍幹面積在1平方左右那款有哪些優點?
  • 下一篇:英制螺紋標準介紹和標註
  • copyright 2024編程學習大全網