CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
592
Bird Inherits From AnimalThe base class Animal already defines a Breathe() method that prints Breathing.
easyNot startedSolve
593
Book Inherits TitleThe base class Publication defines a public field Title.
easyNot startedSolve
594
Coordinate ToString OverrideEvery class in C# inherits ToString() from object.
easyNot startedSolve
595
Shape Base ConstructorThe base class Shape has a constructor that stores a name.
easyNot startedSolve
596
Puppy Uses Inherited EatThe base class Animal defines an Eat() method that prints Munching.
easyNot startedSolve
597
Account Protected BalanceThe base class Account has a protected field balance set by its constructor.
easyNot startedSolve
598
Check Type With isDog inherits from Animal.
easyNot startedSolve
599
Cast With asDog inherits from Animal and defines a Bark() method.
easyNot startedSolve
600
Three Level InheritanceInheritance can span multiple levels.
easyNot startedSolve
601
Square Inherits Width PropertyThe base class Shape2D defines a public auto-property Width.
easyNot startedSolve
602
Base Constructor Runs FirstWhen you create a derived object, the base constructor runs before the derived constructor body.
easyNot startedSolve
603
SmartPhone Adds A MethodA derived class keeps everything it inherits and can add new members of its own.
easyNot startedSolve
604
Pass Color To BaseThe base class Widget has a constructor that takes a color and prints it.
easyNot startedSolve
617
Car Honks Like A VehicleMake the class Car inherit from Vehicle so it gains the Honk method for free.
easyNot startedSolve
618
Wizard Extends CharacterCharacter has a constructor that stores a health value.
easyNot startedSolve
619
Guitar Overrides PlayInstrument has a virtual method Play that returns "silence".
easyNot startedSolve
620
Manager Reads Protected IdEmployee has a protected field id set to 42.
easyNot startedSolve
621
Temperature Display OverrideOverride the inherited ToString method in Temperature so it returns the stored number followed by the letter C (for example 22C).
easyNot startedSolve
622
Cheetah Runs FastAnimal has a virtual method Move returning "moving".
easyNot startedSolve
623
Cash Payment AmountPayment is an abstract class with an abstract method Amount.
easyNot startedSolve
624
Four Level InheritanceClass A defines Origin.
easyNot startedSolve
625
Laptop Inherits BrandDevice has an auto-property Brand.
easyNot startedSolve
626
Kilometers To MetersMeters stores a value.
easyNot startedSolve
627
Bicycle Adds A BellVehicle has a Move method.
easyNot startedSolve
628
Thermostat Inherits PowerAppliance has a public field Power set to 5.
easyNot startedSolve
6
Dog Extends AnimalAn Animal base class is provided by the tester.
mediumNot startedSolve
518
Polymorphic AnimalsPolymorphism lets one loop call the right override for each object.
mediumNot startedSolve
605
Override Speak MethodThe base class Animal declares a virtual method Speak() that prints Some sound.
mediumNot startedSolve
606
Abstract Shape AreaThe abstract class Shape declares an abstract method Area() with no body.
mediumNot startedSolve
607
Call Base Method With baseThe virtual method Log() in Logger prints Base log.
mediumNot startedSolve
608
Polymorphic AnimalsPolymorphism lets one loop call the right override for each object.
mediumNot startedSolve
609
Override A PropertyProperties can be virtual and overridden just like methods.
mediumNot startedSolve
610
Pass Values To BaseThe base class Person stores a name and age set through its constructor.
mediumNot startedSolve
611
Hide Method With newSometimes a derived class replaces a NON-virtual base method by hiding it with the new keyword.
mediumNot startedSolve
612
Abstract Name PropertyAn abstract class can declare an abstract property that every subclass must supply.
mediumNot startedSolve
629
Orchestra PolymorphismInstrument is abstract with an abstract method Sound.
mediumNot startedSolve
630
Shadow A Method With newLogger has a Log method returning "base log".
mediumNot startedSolve
631
Discounted Product PriceProduct stores a price and has a virtual method Price returning it.
mediumNot startedSolve
632
Abstract Vehicle WheelsVehicle is abstract and declares an abstract read-only property Wheels.
mediumNot startedSolve
633
Override Volume PropertyBox has a virtual property Volume that returns 0.
mediumNot startedSolve
634
Feed The Animal With isFeeder has a method Feed(Animal a).
mediumNot startedSolve
635
Report Template MethodReport defines the fixed method Generate that wraps a body between START and END.
mediumNot startedSolve
636
Protected Wrap HelperFormatter has a protected helper method Wrap that surrounds text in square brackets.
mediumNot startedSolve
613
Shape Area HierarchyBuild a small polymorphic hierarchy.
hardNot startedSolve
614
Layered DescriptionsChain overrides across three levels using base.
hardNot startedSolve
615
Constructor Chain TraceConstructors run from the top of the hierarchy down.
hardNot startedSolve
616
Salary With BonusCombine constructor chaining, an override, and base.
hardNot startedSolve
637
Total Staff PayStaff is abstract with an abstract method Pay.
hardNot startedSolve
638
Base Method Calls OverrideCharacter has a virtual method Name returning "hero" and a non-virtual method Attack that returns Name() + " attacks".
hardNot startedSolve
639hardNot startedSolve
640
Sealed Method OverrideBase has a virtual method Info returning "base".
hardNot startedSolve