FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

OOPs INTERVIEW QUESTION & ANSWERS

31. What are the difference between const and readonly?
 
  • A const can not be static, while readonly can be static.
  • A const need to be declared and initialized at declaration only, while a readonly can be initialized at declaration or by the code in the constructor.
  • A const's value is evaluated at design time, while a readonly's value is evaluated at runtime.
Your Name Your Email-ID
Your Answer
 
32. What is difference between Class And Interface?
 
  • Class : is logical representation of object. It is collection of data and related sub procedures with defination.
  • Interface : is also a class containg methods which is not having any definations.Class does not support multiple inheritance. But interface can support.
Your Name Your Email-ID
Your Answer
 
33. What is the difference between Overriding and Overloading?
 
  • Overriding : you override a virtual class.
  • Overloading : you overload a method with different number of parameters or diffent type of parameters.
Your Name Your Email-ID
Your Answer
 
34. What is nested classes?
  Nested classes are classes with in classes.
Your Name Your Email-ID
Your Answer
 
35. What is an identifier?
  Identifiers are nothing but names given to various entities uniquely identified in a program.
Your Name Your Email-ID
Your Answer