English 中文(简体)
我怎么能够把一个子级划给一个在肥胖症中属于超级等级的财产?
原标题:How can I set a sub-class to a property that is a super-class in obj-c?

考虑实施以下几类:

h 三个不同类别的文件执行

//superClass.h
...
@interface superClass

//Insert useful code

@end

//subClass.h
...
@interface subClass : superClass

//Insert useful code

@end

//Another class that uses various sub-classes of superClass
@interface anotherClass
{
    superClass* myObj;
}
@property (strong, atomic) superClass* myObj;

@end

<m file implementation of anotherClass

@implementation anotherClass

@synthesize myObj;

...
//All of the code that uses the myObj property...
...

@end

我怎么能把<条码>代号列入一个财产案例<条码>。

在我的具体情况下,我要界定一个名为<条码>的不动产。 我有多个次等级,即IDViewControllers,我必须能够在我方言的某个特定财产中进行冲销。

每当我试图把我的孩子信使中的一人安装到我的<条码>,即刻板——即刻板。 然而,如果我重新认定财产属于某一儿童类别,然后即刻划一个子级,则该财产是完美的。 我确实需要有能力冲动这些控制人员。 我如何能够这样做?

<>>>>>

值得一提的是,向研究这一问题的所有人道歉。 在获得明显答案后,我决定重新制定所有相关守则。 我创造了一种新的财产,名称不同,对我的所有派任法典进行了评论,重新命名,以指明新的财产。 它与它一样工作。 我不敢肯定,为什么会第一次工作,但现在它正在像现在这样作。 然而,我仍然不清楚我为什么要坠毁。

最佳回答

转让也是如此。 每一次<条码>次目录/代码>也是<条码>。 The s subtype poly吗?”

问题回答

暂无回答




相关问题
Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Passing another class amongst instances

I was wondering what is the best practice re. passing (another class) amongst two instances of the same class (lets call this Primary ). So, essentially in the constructor for the first, i can ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签