Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on implementing interfaces and concept of assemblies within the C# forums, part of the Software Development category; 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...
|
|||||||
|
|||
|
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 |
| The Following User Says Thank You to arij1611 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: implementing interfaces and concept of assemblies
Quote:
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
|
|
|||
|
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 07:58 PM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| interfaces | amaravadi.krishna81 | OOPS | 6 | 10-26-2008 02:15 AM |
| Parameters passing in packages in Interfaces | nishank31 | Oracle Apps | 2 | 10-15-2008 06:20 AM |
| Implement and extend the interfaces in JSP file | hari.nattuva | JSP | 0 | 06-15-2007 03:05 PM |
| Supplier conversions and interfaces tables | Shaik Ahmed | Oracle Apps | 0 | 06-12-2007 07:25 AM |
| Explain about Assemblies, native assemblies, and the Global Assembly Cache | GeekAdmin | VB.NET | 0 | 05-17-2006 11:59 PM |