Results 1 to 3 of 3

Thread: implementing interfaces and concept of assemblies

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

    implementing interfaces and concept of assemblies

    hi friends
    It wud b nice to u if u give me a simple explanation of the assemblies used for implementing c# programs n also how to implement interfaces


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

    Re: implementing interfaces and concept of assemblies

    Quote Originally Posted by arij1611 View Post
    hi friends
    It wud b nice to u if u give me a simple explanation of the assemblies used for implementing c# programs n also how to implement interfaces
    hi Interfaces cannot be implemented because interface consist of ony signatures of methods and no body. Interfaces are only used to define methods and properties


  3. #3
    Junior Member
    Join Date
    Nov 2008
    Answers
    3

    Re: implementing interfaces and concept of assemblies

    Fist ... How to Implement Interface....

    IN a project the Interfaces are designed by Project Architechts where they specify some methods which needs to be implemented when we Inherit the class what they designed.

    Example: In a project for HOME the ROOMs will be classes and BEDROOM will be a Interface having a Method for BEDPLACE so when ever u are Constructing a room which inherit BEDROOM u need to implement BEDPLACE.

    Code will some what look like..
    // Normall Intercfaces will be prefixed wth I

    /*This is a Method which should be implemented Derived class */

    Class IBedRoom
    {
    public string BedPlace();

    /*This is a Property which should be implemented Derived class */
    string public Lamp{get;}

    }

    So when we (Developers) are developing the Application and derive the Interface we need to implement the same Method...
    Ex..
    public class MyRoom : IBedRoom
    {
    public Void TVPlace()
    {
    }
    }

    This will give error coz u didnt implement the method and property Of the IBedRoom Interface...

    public class MyRoom : IBedRoom
    {
    public Void TVPlace()
    {
    }
    public string BedPlace()
    {
    return "Right"
    }

    // try to get how to implement Property on ur Own..

    }



    Once u are done wth this i will tell u how to use Assemblies in C#.

    Happy Programming

    Marla

    Last edited by adib4u2000; 11-20-2008 at 06:58 PM.

  4.  Sponsored Ads
    Ad


     

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