Solved

Function call

Posted on 2013-10-22
1
361 Views
Last Modified: 2013-11-07
This code below is in a namespace and Interface and functions declared using different data types so will they execute in sequential order or will they need to be called for execution

namespace InTouchCapAutomation
{
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    [Guid("69D98FE7-90D6-4597-9476-8EABC68739E5")]
    [ComVisible(true)]
    public interface INAVClient
    {
        bool mobRetrive(string mobno,string userdet);
        string details(int index);
        bool pushdata(string New_Customer, string userdet);
        void additems(string item);
        bool updateCust(string details,string otherDet,string userdet);
        bool AddTransaction(string details,string userdet);
        string CouponFetch(string coupon, string userdet);
        int customdet(int index);
        bool notInterestedTrans(string details, string userdet);
        bool updateDates(string details, DateTime brthdy,DateTime AnvDy, string userdet);
        string VoucherRedeem(string User_Cred, string alldet, string Amt);
        bool points_validation(string mobile, int points, string Usr_det);
        int points_redemption(string OrdId, string Mob, string Val_Code, int points, string user_det);
    }

Open in new window

0
Comment
Question by:Moizsaif123
1 Comment
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 500 total points
ID: 39593438
An interface contains definitions for a group of related functionalities that a class or a struct can implement.

By using interfaces, you can, for example, include behavior from multiple sources in a class. That capability is important in C# because the language doesn't support multiple inheritance of classes.

An interface contains only the signatures of methods, properties, events or indexers. A class or struct that implements the interface must implement the members of the interface that are specified in the interface definition. In the following example, class ImplementationClass must implement a method named SampleMethod that has no parameters and returns void.

interface ISampleInterface
{
    void SampleMethod();
}

class ImplementationClass : ISampleInterface
{
    // Explicit interface member implementation:  
    void ISampleInterface.SampleMethod()
    {
        // Method implementation.
    }

    static void Main()
    {
        // Declare an interface instance.
        ISampleInterface obj = new ImplementationClass();

        // Call the member.
        obj.SampleMethod();
    }
}

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question