classes
-
hi, while using inheritance if we have two classess ie animal and bird -when do we craete a new object this way in main function animal obj = new bird(); and when are the instances that we create an object to call a method:: i know that we do so wen we have to call a method from another class and to call a nonstatic function into a static function again we create an object. otherthan these what are the other instances we do so ...... thanks
C#
-
hi, while using inheritance if we have two classess ie animal and bird -when do we craete a new object this way in main function animal obj = new bird(); and when are the instances that we create an object to call a method:: i know that we do so wen we have to call a method from another class and to call a nonstatic function into a static function again we create an object. otherthan these what are the other instances we do so ...... thanks
C#
1st learn to write proper question, then expect to get proper answer.
Regards Chintan www.visharadsoft.com (I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
-
1st learn to write proper question, then expect to get proper answer.
Regards Chintan www.visharadsoft.com (I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
what are the times that we create an object to call a method:: i know that we do so wen we have to 1) call a method from another class and 2)to call a nonstatic function into a static function again we create an object. otherthan these what are the other instances we do so ...... thanks
C#