Which of the following are necessary for Run-time Polymorphism The overridden base method must be virtual, abstract or override Both the override method and the virtual method must have the same acces
Which two can be used to create a new Thread Extend java.lang.Thread and override the run() method Extend java.lang.Runnable and override the start() method Implement java.lang.Thread and implement t
Which of the following is/are the right way to declare a method?(i) function functionName() { function body }(ii) scope function functionName() { function body }(iii) method methodName() { method body
Which of the following statements are correct about delegates Delegates are not type-safe Delegate is a user-defined type Only one method can be bound with one delegate object. Delegates can be used
Which of the following statements are correct about the delegate declaration given below delegate void del(int i); On declaring the delegate a class called del will get created The signature of del n
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction