SOや他の場所でのアドバイスに続いて、次のような簡単な例のように、インターフェイスを使って多態性を実装しようとしました。 type IFace =
// abstract methods
abstract member foo: int -> int
type X(i: int) =
// some code
interface IFace with
public class ClassOut {
abstract class ClassIn {
int x = 20;
public void print() {
System.out.println("value = " + getX());
}
public abstract int getX();
}
私はthisマッピング戦略を実装しようとしています。私はidや他のフィールドを持つ抽象クラスを定義しました。次のエラーが発生し続ける: No identifier/primary key specified for Entity "AppBundle\Entity\AbstractItem". Every Entity must have an identifier/primary key. (5
次のように私はApplicationRecordモデルを持っている: class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def hello_world
return "helllloo"
end
end
をし、次のように私はInstanceモデルを持っている
をインスタンス化することはできません私はという名前抽象データベースクラスがあります。私はそれを使用しようとすると abstract class database {
protected $value;
}
を私は abstract class my_database extends database {
public function set_value($value)