i work on csharp issue but i don't know how to solve it
i have two classes A AND B
how to instaniate it as below
A a =new A();
A B =new B();
i work on csharp issue but i don't know how to solve it
i have two classes A AND B
how to instaniate it as below
A a =new A();
A B =new B();
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Uttam KumarPosted Apr 24, 2022, 3:49 PM
You can achieve it by implementing inheritance
You can do this in couple of ways
1. By defining class A as abstract
2. By defining an interface
3. By defining a normal class
Muhammad Imran AnsariPosted Apr 24, 2022, 10:44 AM
Sachin SinghPosted Apr 24, 2022, 7:12 AM