Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 812837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:15:53+00:00 2026-05-15T01:15:53+00:00

i try to call base.Alan(); in HacimBul. But base. dont give intellisense alan method

  • 0

i try to call base.Alan(); in HacimBul. But base. dont give intellisense alan method

   public double HacimBul()
        {
            throw new Exception();
            //return base..... --> how can i see base.Alan();
        }

namespace interfaceClass
{
    class Program
    {
        static void Main(string[] args)
        {

        }
    }

    interface Ikenar
    {
       double kenar { get; set; }
    }

    interface Iyukseklik
    {
        double yuksekli {get; set;}
    }
    interface IAlan
    {
        double Alan();
    }
    interface IHacim
    {
        double Hacim();
    }

    class Alan : Ikenar, IAlan
    {
        public double kenar
        {
            get;
            set;
        }

        double IAlan.Alan()
        {
            return kenar * kenar;
        }
    }

    class Hacim : Alan, Iyukseklik
    {

        public double kenar
        {
            get;
            set;
        }

        public double yuksekli
        {
            get;
            set;
        }

        public double HacimBul()
        {
            throw new Exception();
            //return base..... --> how can i see base.Alan();
        }
   }
}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:15:54+00:00Added an answer on May 15, 2026 at 1:15 am

    The method is not public or protected, it is private the way you’ve defined it, and even more private than just private as well, it is only available if you go through the interface.

    This means that in order to call the method you will have to:

    • Change the explicit implementation of your Alan method to an implicit one (making the method public) in Alan:

      public void Alan()
      {
      }
      
    • or, you will have to cast the instance during the call:

      ((IAlan)this).Alan();
      

    Unfortunately, with that last syntax there, you won’t actually be calling “base.Alan”, but rather just “this.Alan”, which might make a difference if you also override that method in the descendant class.

    Here’s an example:

    using System;
    
    namespace interfaceClass
    {
        public interface ITest
        {
            void Execute();
        }
    
        public class Base : ITest
        {
            void ITest.Execute()
            {
                Console.Out.WriteLine("Base.ITest.Execute");
            }
        }
    
        public class Descendant : Base, ITest
        {
            void ITest.Execute()
            {
                Console.Out.WriteLine("Descendant.ITest.Execute");
            }
    
            public void Test()
            {
                // There's no way to call "base.Execute()" here
                ((ITest)this).Execute();
            }
        }
    
        class Program
        {
            static void Main(string[] args)
            {
                Descendant d = new Descendant();
                d.Test();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to do something like class base { public: virtual double operator() (double
for some reason when I try to call CocoaAsyncSocket's onSocket:didReadData:withTag method, it's failing and
If I try to call a member function of a member of the base
I have created an abstract base class Animal which has public virtual abstract method
Try this out: template <typename T> class Base { public: int someBaseMember; }; template
I try to call an API. I just want use active resource so I
I try to call a function which checks a rule and if the rule
I try to call a function which passed as function pointer with no argument,
I try to call the esriRegAsm.exe with arguments from a C# program. The purpose
When I try to call this simple function in a CFC, with the proper

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.