CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
641
Override a Virtual MethodThe base class Animal has a virtual method Speak.
easyNot startedSolve
642
Two Overloaded Print MethodsThe Printer class already has a Print(int) method.
easyNot startedSolve
643
Overload Add By ArityThe Calculator class has an Add method that sums two int values.
easyNot startedSolve
644
ToString Override for PointOverride the ToString method on the Point class so printing a point shows it as (X, Y).
easyNot startedSolve
645
Implement an Abstract MethodThe abstract class Shape declares an abstract method Area with no body.
easyNot startedSolve
646
Implement an InterfaceThe interface IGreeter declares a method Greet that returns a string.
easyNot startedSolve
647
Virtual Property OverrideThe base class Employee has a virtual read-only property Role that returns Employee.
easyNot startedSolve
648
Call Base Method in OverrideThe base class Logger has a virtual method Log that prints Base log.
easyNot startedSolve
649
Sealed OverrideThe base class Widget has a virtual method Draw.
easyNot startedSolve
650
Overload By Parameter TypeThe Formatter class has a Show(int) method.
easyNot startedSolve
651
Interface PropertyThe interface IProduct declares a read-only Name property.
easyNot startedSolve
652
Polymorphic Method ParameterThe Speaker class has a method Announce(Animal a).
easyNot startedSolve
653
Abstract Property ImplementThe abstract class Animal declares an abstract read-only property Sound.
easyNot startedSolve
666
Override a Calculated ResultThe base class Shape has a virtual method Area() that returns 0.
easyNot startedSolve
667
Extend the Base Method with baseThe base class Greeter has a virtual method Greet() that returns Hello.
easyNot startedSolve
668
Overload a Method by Argument CountMethod overloading (compile-time polymorphism) lets one method name have several versions with different parameter lists.
easyNot startedSolve
669
Overload a Method by Parameter TypeOverloads can also differ by parameter type.
easyNot startedSolve
670
Polymorphic ToStringConsole.WriteLine on an object calls that object's ToString(), and the object's real type decides which version runs.
easyNot startedSolve
671
Implement an Interface MethodAn interface lists methods a class promises to provide.
easyNot startedSolve
672
Override a Virtual PropertyProperties can be virtual and overridden just like methods.
easyNot startedSolve
673
One Method, Many AnimalsA method that takes a base-class parameter can accept ANY derived object.
easyNot startedSolve
674
Override a Void MethodOverriding also works for methods that return nothing.
easyNot startedSolve
675
Implement an Abstract PropertyAbstract classes can declare abstract properties that each derived class must fill in.
easyNot startedSolve
782
Override Equals for Value EqualityOverride the inherited Equals(object?
easyNot startedSolve
783
Chain to the Base ConstructorVehicle has a constructor that takes a make and stores it in Make.
easyNot startedSolve
654
Polymorphic List TotalComplete AreaCalculator.TotalArea so it returns the sum of Area() for every Shape in the list.
mediumNot startedSolve
655
Operator OverloadingOverload the + operator on the Vector class so adding two vectors adds their X and Y components.
mediumNot startedSolve
656
Iterate Interface ImplementersThe interface IShape is implemented by Circle and Triangle, each returning a different Describe() string.
mediumNot startedSolve
657
Classify By Runtime TypeComplete Classifier.Classify so it returns Dog, Cat, or Unknown depending on the actual runtime type of the Animal passed in.
mediumNot startedSolve
658
Generic Max MethodComplete the generic method Max<T> so it returns the larger of two values of ANY comparable type.
mediumNot startedSolve
659
Implement Two InterfacesA class can implement more than one interface.
mediumNot startedSolve
660
Abstract Template MethodThe abstract class Shape has a concrete Report() method that combines two abstract members: Kind() and Area().
mediumNot startedSolve
661
Implement IComparableMake Person implement IComparable<Person> by ordering people by Age ascending.
mediumNot startedSolve
676
Loop Over a Base-Type ArrayThe abstract class Animal declares abstract string Sound().
mediumNot startedSolve
677
Hide a Method with newThe new keyword HIDES an inherited method instead of overriding it.
mediumNot startedSolve
678
Safe Downcast with Pattern MatchingSometimes you must check an object's real type before using a method only the derived class has.
mediumNot startedSolve
679
Sum Areas Through an InterfaceThe IShape interface declares int Area().
mediumNot startedSolve
680
Template Method Calls a VirtualA non-virtual base method can call a virtual method, and overriding that virtual changes the base method's behavior.
mediumNot startedSolve
681
Chained Overrides Across Three LevelsOverrides can build on each other level by level using base.
mediumNot startedSolve
682
Program to an InterfaceA method that accepts an interface type works with any class that implements it.
mediumNot startedSolve
683
Polymorphic Factory From InputA factory method can return different subclasses through the same base type, chosen at runtime.
mediumNot startedSolve
784
Default Interface MethodGive the IGreeter interface a default method Greet() that returns the text Hi, <Name>!, built from the interface's own Name property.
mediumNot startedSolve
662
Build a Shape HierarchyBuild a polymorphic shape hierarchy from scratch.
hardNot startedSolve
663
Discount StrategiesBuild an interface-based strategy from scratch.
hardNot startedSolve
664
Money With Operator PlusBuild a Money class that supports the + operator.
hardNot startedSolve
665
Polymorphic PayrollBuild a payroll hierarchy from scratch.
hardNot startedSolve
684
Explicit Interface ImplementationWhen two interfaces declare a method with the SAME name, a class can implement each one explicitly so they do not collide.
hardNot startedSolve
685
Generic Method (Parametric Polymorphism)Generics let one method work with ANY type.
hardNot startedSolve
686
Generic Container ClassA generic class is a single class definition that adapts to whatever type you plug in.
hardNot startedSolve
785
Covariant Return Type OverrideAnimal declares a virtual Clone() that returns an Animal, and a virtual Species property.
hardNot startedSolve