Gaurav Sule

Gaurav Sule

  • NA
  • 3
  • 1.2k

c# class query n methods

Aug 6 2014 3:04 PM
class A        class B
                                                                               {              {
                                                                         void m1()       void m2()
                                                                              {                  {
                                                                              }                  }
in this have to call a method m2 from Class B to Class A.
but restriction is dat:
no abstract class, abstract method,static,interface,
no object creation of class B in A, nested class,constructor,paramtertised contrsctor nothing. no relation betwn A n B n no creation of 3rd class.. no partial obj or class..
Only can do is dat make obj in main class bt not in body.
n mam told dat codeis of only 3 lines..

Answers (3)