• SUMMIT THAKUR
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
class a{
    class b{
        int a;
    }
    class c{
        string b;
    }
    
    static list<class> method(){
        if(condition){
            b obj=new b;
            return obj;
        }
        else{
            c obj=new c;
            return obj;
        }
    }
}