Results 1 to 3 of 3

Thread: Can I access a class without an object

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    1

    Can I access a class without an object

    Hi & Hello

    I am a dot net novice and this is my first thread in this forum. Please help me

    Is it mandatory to create an object for every class if we want to access something written inside the class? or can we access anything inside the class without creating an instance/object?

    Thanks in advance.


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    1

    Re: Can I access a class without an object

    Not all the time its required. If u have an static class ; u can access it without creating an instance

    regards
    syed qumruzzaman babu


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    15

    Re: Can I access a class without an object

    "Public Shared Class XYZ" can contain methods that can be accesed without instantiation.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact