27 lines
488 B
C#
27 lines
488 B
C#
namespace Exercises_C_Sharp.E40_Vererbung
|
|
{
|
|
class Exercise_1
|
|
{
|
|
public static void Start()
|
|
{
|
|
Second sec = new();
|
|
|
|
//Sorgen Sie dafür, dass dieser Aufruf funktioniert. Entkommentieren Sie ihn als Überprüfung:
|
|
//sec.SayIt();
|
|
|
|
}
|
|
}
|
|
|
|
class First
|
|
{
|
|
public void SayIt()
|
|
{
|
|
Console.WriteLine("Something");
|
|
}
|
|
}
|
|
|
|
class Second /* CODE START */ /* CODE ENDE */
|
|
{
|
|
|
|
}
|
|
} |