We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b434f8c commit c5df1f2Copy full SHA for c5df1f2
AbstrctClassExaple.cs
@@ -0,0 +1,40 @@
1
+using System;
2
+
3
+namespace AbstractClassExample
4
+{
5
+ public abstract class GeeksForGeeks
6
+ {
7
+ public abstract void Gfg();
8
+ }
9
10
+ public class Geek1 : GeeksForGeeks
11
12
13
+ public override void Gfg()
14
15
+ Console.WriteLine("Class Geek 1");
16
17
18
19
+ public class Geek2 : GeeksForGeeks
20
21
22
23
+ Console.WriteLine("Class Geek 2");
24
25
26
27
+ public static class Program
28
29
+ private static void Main(string[] args)
30
31
+ GeeksForGeeks g;
32
+ g = new Geek1();
33
+ g.Gfg();
34
35
+ g = new Geek2();
36
37
38
39
40
+}
0 commit comments