Class, Interface, Abstract, Static, Partial, Sealed

Click For Summary

Discussion Overview

The discussion revolves around the classification and terminology of various programming constructs, specifically Instance Classes, Interfaces, Abstract Classes, Partial Classes, Static Classes, and Sealed Classes. Participants explore how to collectively refer to these constructs within the context of programming and software design.

Discussion Character

  • Conceptual clarification, Debate/contested

Main Points Raised

  • One participant suggests referring to the constructs collectively as "classes and interfaces," with "classes" encompassing the mentioned types.
  • Another participant proposes the term "structures," arguing that all these constructs ultimately represent a chunk of memory that holds members and a function table.
  • A later reply challenges this view by stating that interfaces do not correspond to a memory structure, emphasizing their role as a datatype contract that specifies methods a class must implement.
  • An example from Java is provided to illustrate the concept of interfaces, specifically mentioning the Runnable interface and its implications for multi-threaded operations.

Areas of Agreement / Disagreement

Participants express differing opinions on the appropriate terminology and classification of the constructs, indicating that multiple competing views remain without a consensus.

Contextual Notes

There is a lack of clarity regarding the definitions and implications of the terms used, particularly concerning the nature of interfaces and their relationship to memory structures.

pairofstrings
Messages
411
Reaction score
7
Hi.
What do I call Instance Classes, Interface, Abstract Classes, Partial Classes, Static Class, Sealed Class collectively?
Thanks.
 
Technology news on Phys.org
I'd just say classes and interfaces with classes covering the ones you mentioned.
 
It's grammar, maybe an API? I would just call them structures as all of them eventually boil down to a chunk of memory holding the members and a function table.
 
Except the interface doesn't boil down to some memory.

Interfaces are used as a datatype contract to say that the class that implements the interface supports the following methods.

A good example in Java, is the Runnable interface which if implemented by some class means that it will have a run() method for multi-threaded operations.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K