OOPs Interview Question and Answers

56. Explain about this reference?
 
  • The keyword this is used as a reference of a current class.
  • The mechanism of accessing the current object is obtained is using this reference.
  • Inheritance and polymorphism.
 
Your Name Your Email-ID
Your Answer
57. Give the restrictions of new modifier?
 
  • A member declaration with a new modifier hides an inherited member only within the scope of the new member.
  • A member declaration with a new modifier cannot include override keyword in its declaration.
  • It is an error to include both new and override modifier in the same declaration.
 
Your Name Your Email-ID
Your Answer
58. List the classes used for regular expression.
 
  • Regex
  • Match collection
  • Match
 
Your Name Your Email-ID
Your Answer
59. What are the forms Inheritance available?
 
    The inheritance is achieved in two different forms. They are
  • Classical inheritance
  • Containment inheritance
 
Your Name Your Email-ID
Your Answer
60. What does the term immutable mean?
  The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
 
Your Name Your Email-ID
Your Answer
123456789101112 Page 12 of 12