VB.Net Interview Question and Answers

36. Define Naming convention?
  Naming Conventions are simply agreed upon standards for how elements will be named in a program.
 
Your Name Your Email-ID
Your Answer
37. What is Overloading?
  A process of creating different implementation of a method having a same name as base class, in a derived class. It implements Inheritance.
 
Your Name Your Email-ID
Your Answer
38. When do you use virutal keyword?
  When we need to override a method of the base class in the sub class, then we give the virtual keyword in the base class method. This makes the method in the base class to be overridable. Methods, properties, and indexers can be virtual, which means that their implementation can be overridden in derived classes.
 
Your Name Your Email-ID
Your Answer
39. What is the purpose of XML Namespaces?
 
    An XML Namespace is a collection of element types and attribute names. It consists of 2 parts
  • The first part is the URI used to identify the namespace
  • The second part is the element type or attribute name itself.
 
Your Name Your Email-ID
Your Answer
40. What is a constructor?
  A constructor is invoked when you use the new operator, or use the various methods of reflection to create an instance of a class.
 
Your Name Your Email-ID
Your Answer