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 4382354
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:46:07+00:00 2026-05-21T12:46:07+00:00

In the C# language specifications it explicitly states: Delegates are similar to the concept

  • 0

In the C# language specifications it explicitly states:

Delegates are similar to the concept
of function pointers found in some
other languages, but unlike function
pointers
, delegates are
object-oriented and type-safe.

I understand delegates need to be a little more flexible than pointers because .NET moves memory around. That’s the only difference I’m aware of, but I am not sure how this would turn a delegate into in OO concept…?

What makes a function pointer not object oriented? Are pointers and function pointers equivalent?

  • 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-21T12:46:07+00:00Added an answer on May 21, 2026 at 12:46 pm

    Well, Wikipedia says that “object oriented” means using “features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance.” Lacking a better definition, let’s go with that.

    Function pointers don’t contain data, they don’t encapsulate implementation details, they neither send nor receive messages, they are not modular, they are not typically used in a polymorphic manner (though I suppose they could in theory be covariant and contravariant in their return and formal parameter types, as delegates now are in C# 4) and they do not participate in an inheritance hierarchy. They are not self-describing; you can’t ask a function pointer for its type because it doesn’t have one.

    By contrast, delegates capture data — they hold on to the receiver. They support messaging in the sense that you can “message” a delegate by calling its ToString or GetType or Invoke or BeginInvoke methods to tell it to do something, and it “messages” you back with the result. Delegate types can be restricted to certain accessibility domains if you choose to do so. They are self-describing objects that have metadata and at runtime know their own type. They can be combined with other delegates. They can be used polymorphically as System.MulticastDelegate or System.Delegate, the types from which they inherit. And they can be used polymorphically in the sense that in C# 4 delegate types may be covariant and contravariant in their return and parameter types.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning on my own about writing an interpreter for a programming language,
Quote from C# language specification 3.9: '2. If the object, or any part of
In Ecma-334 (C# Language Specification 4th Edition), Annex A. Grammar, Section A.1.1 Line terminators:
According to the language specification guide for VB.NET Section 10.9.3 The enumerator expression in
From the Java Language Specification (third edition), section 3.10.5 : StringLiteral: StringCharacters opt StringCharacters:
Does Java Language Specification lay down the rules of method overriding in sub classes?
I was reading JavaScript: The Good Parts and the author mentions that JavaScript is
We manage a site for a medical charity. They have a number of links
I am trying to understand the practical difference during the execution of a program
I had been programming under the assumption that, when calling a method in C#

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.