Showing posts with label oops concept. Show all posts
Showing posts with label oops concept. Show all posts

Sunday, 18 October 2015

Runtime polymorphism













We will declare vehicle inteface here, interface will tell what should implement not how to implement.
    //Vehicle.cs
    public interface Vehicle
    {
        void engine();
        void breaks();
    }