CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
687
Implement a Simple InterfaceThe interface IGreeter declares a Greet() method.
easyNot startedSolve
688
Interface Method With ParametersThe interface ICalculator declares int Add(int a, int b).
easyNot startedSolve
689
Interface With a Read-Only PropertyThe interface INamed declares a read-only property string Name { get; }.
easyNot startedSolve
690
Void Method and State in an InterfaceThe interface ICounter declares a Value property and a void Increment() method.
easyNot startedSolve
691
An Interface With Multiple MethodsThe interface IMathOps declares both Add and Subtract.
easyNot startedSolve
692
Compute Area Through an InterfaceThe interface IShape declares double Area().
easyNot startedSolve
693
Interface Method Returning a BooleanThe interface INumberChecker declares bool IsEven(int n).
easyNot startedSolve
694
Build a Formatted DescriptionThe interface IProduct declares string Describe().
easyNot startedSolve
695
A Temperature Converter InterfaceThe interface IConverter declares int ToFahrenheit(int celsius).
easyNot startedSolve
696
Properties and a Method TogetherThe interface IRectangle declares two read-only properties, Width and Height, plus an Area() method.
easyNot startedSolve
697
Polymorphism With a List of InterfacesThe interface IAnimal declares string Speak().
easyNot startedSolve
698
Use a Method Argument in an InterfaceThe interface IWelcomer declares string Welcome(string name).
easyNot startedSolve
699
Model a Bank Account With an InterfaceThe interface IBankAccount declares a Balance property and a Deposit(int amount) method.
easyNot startedSolve
712
Implement a Greeter InterfaceThe IGreeter interface is already declared with one method, Greet.
easyNot startedSolve
713
Read-Only Interface PropertyThe IPerson interface requires a read-only Name property.
easyNot startedSolve
714
Implement an Interface Method That Changes StateThe ICounter interface requires a Count property and an Increment method.
easyNot startedSolve
715
Polymorphism With an InterfaceThe IAnimal interface declares string Speak().
easyNot startedSolve
716
Accept an Interface as a ParameterThe IMessage interface declares string GetText(), and the Hello class already returns Hello from it.
easyNot startedSolve
717
Check the Interface Type With isComplete the Inspector.Describe method so it returns chargeable when the given object implements the IChargeable interface and not chargeable otherwise.
easyNot startedSolve
718
Implement a Property With a Private SetterThe IBankAccount interface requires a read-only Balance property and a Deposit method.
easyNot startedSolve
719
Interface Method Returning a Formatted StringThe IMovable interface declares string Move(int distance).
easyNot startedSolve
720
Implement Several Interface MethodsThe ILight interface has a IsOn property and TurnOn/TurnOff methods.
easyNot startedSolve
721
Computed Property From an InterfaceThe IShape interface requires a read-only Area property.
easyNot startedSolve
722
Boolean-Returning Interface MethodThe IValidator interface declares bool IsValid(string input).
easyNot startedSolve
786
Implement IDisposable to Release a ResourceComplete the Logger class so that it implements the IDisposable interface.
easyNot startedSolve
787
Clone an Object With ICloneableComplete the Point class so that it implements the ICloneable interface.
easyNot startedSolve
700
Implement Two InterfacesA class can implement more than one interface.
mediumNot startedSolve
701
Interface InheritanceOne interface can extend another.
mediumNot startedSolve
702
Sum Areas Through an InterfaceThe interface IShape declares double Area().
mediumNot startedSolve
703
Test for an Interface With `is`Complete the static method ShapeInspector.Describe(object item).
mediumNot startedSolve
704
A Factory That Returns an InterfaceComplete the static method ShapeFactory.Create(string kind).
mediumNot startedSolve
705
Sorting With IComparableThe Book class implements IComparable<Book>.
mediumNot startedSolve
706
Value Equality With IEquatableThe Point class implements IEquatable<Point>.
mediumNot startedSolve
707
Swappable Behavior With an InterfaceThe interface IDiscount declares int Apply(int price).
mediumNot startedSolve
723
Aggregate Over a List of Interface ValuesThe IPriced interface declares int Price(), and the Coffee (3) and Cake (5) classes already implement it.
mediumNot startedSolve
724
Interface That Inherits Another InterfaceIShape inherits from IDrawable: IDrawable declares Draw() and IShape adds Area().
mediumNot startedSolve
725
Sort Objects With IComparableThe Box class stores a Volume and implements IComparable<Box>.
mediumNot startedSolve
726
Use a Default Interface MethodThe INamed interface declares GetName() and provides a DEFAULT implementation of Greet() that returns Hello, followed by the name.
mediumNot startedSolve
727
Custom Sort Order With IComparerWrite a DescendingComparer class that implements IComparer<int> so its Compare method orders numbers from largest to smallest.
mediumNot startedSolve
728
Strategy Pattern With an InterfaceThe IOperation interface declares int Apply(int a, int b).
mediumNot startedSolve
788
Fluent Interface Returning the Same TypeComplete the PathBuilder class so that it implements the IPathBuilder interface.
mediumNot startedSolve
708
Default Interface MethodC# interfaces can provide a DEFAULT method body.
hardNot startedSolve
709
Explicit Interface ImplementationIEnglish and ISpanish each declare a method named Hello().
hardNot startedSolve
710
A Generic InterfaceInterfaces can be generic.
hardNot startedSolve
711
Generic Method Constrained to an InterfaceComplete the generic method MathUtil.Max<T> with the constraint where T : IComparable<T>.
hardNot startedSolve
729
Implement IEnumerable With yieldWrite a Countdown class that implements IEnumerable<int>.
hardNot startedSolve
730
Implement a Generic InterfaceThe generic interface IContainer<T> declares Add(T item), Get(int index), and a Count property.
hardNot startedSolve
731
Interface With an IndexerThe IWordBank interface declares a read-only indexer this[int index] and a Count property.
hardNot startedSolve
732
Factory Method Returning an InterfaceThe IShape interface declares string Name(), and the Circle (returns circle) and Square (returns square) classes implement it.
hardNot startedSolve
789
Covariant Generic InterfaceMake the generic interface IProducer<T> covariant and complete StringProducer.
hardNot startedSolve