Wednesday, November 10, 2010

OOPS Concepts C# Vs VB.Net

Namespace: To grouping the related classes and some other data structures (For Eg. Animals).
Class: Its represents the real life entity (such as Dog,Tiger etc are come together under the namespace Animals).
Object: Instance of a class( For Eg. Jimmy is the instance of Dog)
Access Specifier:
  • Public - Can be accessed by outside of the class members
  • Private - Accessed By memeber of that class only
  • Protected - Same as Private as well as accessed by member of the inherited class
  • Internal - accessed by members of the same assembly.
  • Proctected internal - Contains Both specifier characteristics.
  • Friend - Accessed by memebers with in the project.
Encapsulation: To wrapping up of related attributes and functions in a entity
Abstraction or Data hiding: To protect the member variable access by using access specifier. its called Abstraction .
Shared Functions: Which is access with out instantiate in C# its called Static functions.
Overloading: To assign the more than one actions to the function based on input parameters.
Inheritance: To derive the base class members to derived class
  • Abstract Class: Which is not instantiated directly. (VB.Net keyword Mustinherite.C# keyword abstract)
  • Sealed Class: Which is not inheritable by derived class.(VB.Net keyword NotInheritable. C# keyword sealed)
Overriding (Virtual Function): Functions have same signature in both base class and derived class. (VB.Net keyword for base class function overridable.C# keyword Virtual.VB.Net keyword Overrides. C# keyword override)



Ask a Tech Support Specialist Online

We have partnered with JustAnswer so that you can get an answer ASAP.

JustAnswer

What? not this! then search here

Related post



0 comments:

Post a Comment

 

blogcatalog

Readers Time Pass Copyright © 2009 Shopping Bag is Designed by Ipietoon Sponsored by Online Business Journal