interface

    0熱度

    1回答

    我有一個Laravel 5模型帳戶它實現Interface。 我已經實現了Interface的所有方法,但是當我運行代碼時,Laravel抱怨模型沒有實現接口。 錯誤下面 Account.php(型號) <?php namespace Abc\Accounts\Models; use Abc\Accounts\Contracts\Accountlnterface; use Illumin

    -1熱度

    1回答

    我的筆記本電腦與以太網電纜和wifi連接 我的以太網IP:192.168.18.32 我的無線IP:192.168.18.167 現在我想通過發送一個UDP包java使用wifi網絡接口。 我看了,如果我要綁定把對應的IP,然後在相應的接口將被用來發送,即UDP數據包,如果我綁定到IP 192.168.18.167然後UDP數據包將使用WiFi接口 我的代碼發送: final String wiF

    1熱度

    1回答

    我一直在使用這個tutorial/guide爲Mongo數據庫創建自動生成的查詢。所有但我創建的方法之一工作過,我不知道是否有人可以給我什麼,我用這種方法做錯了一些反饋: List<DcrExecution> findDcrExecutionsByLimitOrderByExecutionTimeDesc(int num); 現在,我想避免創建自己的自定義方法。但是,如果這是唯一的選擇,那麼我

    0熱度

    2回答

    我有一些接口和繼承的麻煩。在這裏我的問題: 我有兩個接口: public interface IElementA { List<IElementA> Child { get; } } // The goal is to add some properties to the main interface public interface IElementB : IElementA

    4熱度

    2回答

    是否有可能獲得擴展基本接口的所有接口的列表而沒有任何 bean在java 在運行時實現的任何接口? 實施例: interface A {} interface B extends A{} interface C extends A{} interface D extends C{} public Class<? extends A>[] getAllInterfaces(A.class)

    0熱度

    1回答

    我創建了一個智能指針項目類似https://www.codeproject.com/Articles/15351/Implementing-a-simple-smart-pointer-in-c自學我不想使用std::shared_ptr,我不希望使用weak_ptr或unique_ptr 小型項目的版本 http://cpp.sh/957bl 現在我想擴大項目,並創建一個interface,使對

    2熱度

    2回答

    我正在學習Java,並且有些東西我無法理解。 如果我理解正確,通過實現一個接口,我不得不實現接口所有的方法。 但是,在可克隆的情況下呢?如果我實施它,我不會強制執行克隆方法。這是爲什麼發生?

    0熱度

    1回答

    在來自標準Node.js庫的類型定義中,我找到了接口DateConstructor的定義。 interface DateConstructor { new(): Date; new(value: number): Date; new(value: string): Date; new(year: number, month: number, date?: n

    0熱度

    1回答

    我有以下情形: 接口IShape定義方法Draw。 類Circle實施IShape和方法Draw。 類Rectangle實施IShape和方法Draw。 類別Square延伸Rectangle並覆蓋方法Draw。 我寫的代碼如下對於上述方案: class Program { static void Main(string[] args) { } } public interfac

    0熱度

    1回答

    我試圖實現接口,並遇到以下錯誤的困難: 我想代碼分層,並試圖使用良好的做法。我也想開始使用接口並用新代碼進行更多的實驗。希望我能得到這個工作。 我知道有許多關於所以這個錯誤的文章,我已經探索了他們。有些困惑,我實現,因爲我與接口和封裝的NuGet一個初學者。我希望我的問題可以開發出一個完整的例子或修正我的課,我可以和我所有的未來發展的基地使用一個簡單的答案。 No parameterless co