Friday, April 26, 2013

Object Oriented Programming in Visual Basic.Net

VB.Net एक Object oriented programming language है इसलिए यह इसके सभी features को support करती है। जो निम्न हैं-

  1. Class: class एक user defined data type है जो की data और functions को contain करता है। इसका कोई visible interface नहीं होता है और न ही ये खुद से run हो सकती हैं। VB.Net मे Class fields, properties, methods और events को contain करती है।

Building a Class: VB.Net मे class बनाने के लिए यह Class Library project provide करता है। जिसका use कर class का collection बनाया जा सकता है। इसके अलावाWindows Application project मे भी Class Files को add कर use किया जा सकता है। इसके लिए सर्वप्रथम एक windows application project create कर लेते हैं। इसके बाद Project menu मे जाकर Add New Windows Form या Add Class select करते हैं। इसके बाद डिस्प्ले होने वाले New Item Dialog box मे Class templet को selectकरते हैं। और file का नाम enter कर Add button पर click करते है। इसके बाद Project मे एक class file add हो जाती है और class declare हो जाती है।

image084

image085

 

Class Declaration Syntax:

[Access_Modifier] [MustInherit | NotInheritable] Class <Class_Name>


        [Inherits <Base_Class_Name>]


        [Statements]


End Class



Access_Modifier: Optional. Can be one of the following:





MultiInherit / NotInheritable: Optional, Define class can be inherited or Not.


Class: Keyword, Define Class


Class_Name: Name of the Class


Inherits: used when Inheritance is used


Base_Class_Name: Name of base class at inheritance



image086

5 comments:

  1. The main motive of the Hadoop big data solution is to spread the knowledge so that they can give more big data engineers to the world.

    ReplyDelete
  2. Nice Article! I learn more important information from your post. It was really interesting and useful post. I like more updates to your blog....





    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery




    ReplyDelete
  3. Excellent Blog! I would like to thank for the efforts you have made in writing this post. Microsoft .Net I am hoping the same best work from you in the future as well. I wanted to thank you for this tableau training website! Thanks for sharing.

    ReplyDelete
  4. DriverToolkit 2023 Crack is a powerful software having ability to update automatically all the PC drivers from its large driver data base. Driver Toolkit License Key

    ReplyDelete
  5. Kaspersky Total Security Crack is a best security app that helps you to protect your multiple devices with multi antivirus protection. Kaspersky Crack

    ReplyDelete

Contact us

Name

Email *

Message *