IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
KB
   ► KB ► > Interfaces Posts  Print This     

Interfaces Posts

"Interfaces" Knowledge Base Posts

  KB Article  

Jon.W
1. M.2 to M.2 SSD Image Transfer

The M.2 2280 form factor solid state drive is becoming more prevalent in today‘s computers because of its ability to save space and pure speed.  The M.2 port accepts two interfaces, the mSATA and the NVMe, the mSATA has two keys on both sides (B+M) and the NVMe has one key on the right side (B).  The NVMe uses 2 more PCIe lanes than the mSATA, because of this many people are switching to the NVMe interface.  At the time of this writing it is unusual to come across a PC with 2 separate M.2 ports.  Also it is difficult to find adapters that properly accept the NVMe interface. 

Posted to KB Topic: Hardware
46 months ago
(4 Comments , last by Logan.R )

Article
Nothing New Since Your Last Visit
998
Hits

Computer Tech

Mike Prestwood
2. Delphi Abstraction (abstract, override)

Delphi for Win32 supports abstract class members using the abstract keyword. You can even instantiate instances of a class that contains abstract members. Then you override each abstract member in a descendant class with Override. Delphi does not support setting an entire class as abstract. You can create an abstract class (a class with one or more abstract methods), but there is no way to tell the compiler to not allow the instantiation of the abstract class. Delphi does not support abstract member properties directly. To implement an abstract properity, make use of abstract methods. That is, you can read a GetPropertyX abstract function and write to a SetPropertyX abstract procedure. In effect, creating  an abstract property.

Posted to KB Topic: OOP
14 years ago, and updated 11 years ago
(5 Comments , last by sophie.e )

Code

Article
Nothing New Since Your Last Visit
26959
Hits

Pascal and Delphi Coding

Peter Gruenbaum
3. Web API Documentation

The number of Web APIs is growing rapidly, especially with the increasing popularity of Software as a Service. Because Web APIs are still fairly new, the quality and format of their documentation varies a great deal. Good documentation is important for Web APIs because experimentation is more difficult than with local APIs. Because Web APIs are language-neutral, you may need to write sample code in a variety of different languages. Be sure to cover authentication, error handling, and HTTP information.

Posted to KB Topic: Technical Writing
12 years ago, and updated 12 years ago
(3 Comments , last by Anonymous )

Article
Nothing New Since Your Last Visit
28073
Hits

Technical Writing

Mike Prestwood
4. OO/UML: Aggregation versus Composition

Our most popular article in the history of our online community! Explains the "is a", "has a", "uses a", and "looks like" relationships (updated May 2007). "Is a" is inheritance, "looks like" is interfaces, "has a" is aggregation, and "uses a" is composition.

Posted to KB Topic: Object Orientation (OO)
20 years ago, and updated 12 years ago
(12 Comments , last by Joann.M )

Article
Nothing New Since Your Last Visit
119757
Hits

Coding & OO

Mike Prestwood
5. Interface

An element of coding where you define a common set of properties and methods for use with the design of two or more classes.

Both interfaces and abstract classes are types of abstraction. With interfaces, like abstract classes, you cannot provide any implementation. However, unlike abstract classes, interfaces are not based on inheritance. You can apply an Interface to any class in your class tree. In a real sense, interfaces are a technique for designing horizontally in a class hierarchy (as opposed to inheritance where you design vertically). Using interfaces in your class design allows your system to evolve without breaking existing code.

Posted to KB Topic: Object Orientation (OO)
14 years ago, and updated 13 years ago

Definition
Nothing New Since Your Last Visit
25181
Hits

Coding & OO

Mike Prestwood
6. Delphi Prism Polymorphism

Prism supports the following types of polymorphism:

Posted to KB Topic: OOP
13 years ago, and updated 13 years ago
(1 Comments , last by mtiede )

Code
Nothing New Since Your Last Visit
10399
Hits

Delphi Prism

Ramesh R
7. API documentation - documenting the program code

Overview and tips for documenting an Application Programming Interface (API).

Posted to KB Topic: Technical Writing
14 years ago, and updated 13 years ago
(11 Comments , last by Aren.T )

KB Post
Nothing New Since Your Last Visit
10261
Hits

Technical Writing

Mike Prestwood
8. psSendMail DLL Easily send e-mail directly from your custom applications. Works with all 32-bit Windows development environments and includes Paradox, Access, and Visual Basic examples.
Posted to KB Topic: ObjectPAL Coding
14 years ago, and updated 13 years ago
(2 Comments , last by mprestwood )

Download
Nothing New Since Your Last Visit
14305
Hits

Corel Paradox / ObjectPAL Coding

Mike Prestwood
9. Delphi Polymorphism

Delphi supports the following types of polymorphism:

Posted to KB Topic: OOP
13 years ago
(4 Comments , last by Belinda.D )

Code
Nothing New Since Your Last Visit
14594
Hits

Pascal and Delphi Coding

Mike Prestwood
10. VB.Net Polymorphism

C# supports the following types of polymorphism:

Posted to KB Topic: OOP
13 years ago

Code
Nothing New Since Your Last Visit
10715
Hits

VB.Net Language

Mike Prestwood
11. Abstract Class / Abstract Member

An abstract class member is a member that is specified in a class but not implemented. Classes that inherit from the class will have to implement the abstract member. Abstract members are a technique for ensuring a common interface with descendant classes. An abstract class is a class you cannot instantiate. A pure abstract class is a class with only abstract members.

Posted to KB Topic: Object Orientation (OO)
14 years ago, and updated 13 years ago
(5 Comments , last by AkaRasty.B )

Definition
Nothing New Since Your Last Visit
23345
Hits

Coding & OO

Mike Prestwood
12. C# Partial Classes (partial)

C# uses the keyword partial to specify a partial class. All parts must be in the same namespace.

A partial class, or partial type, is a class that can be split into two or more source code files and/or two or more locations within the same source file. Each partial class is known as a class part or just a part. Logically, partial classes do not make any difference to the compiler. The compiler puts the class together at compile time and treats the final class or type as a single entity exactly the same as if all the source code was in a single location.

You can use them for many things including to separate code generator code, organize large classes, divice a class up so you can split ownwership among multiple developers, have different versions of the same class, and to utilize multiple languages with a single class.

Posted to KB Topic: OOP
13 years ago, and updated 13 years ago
(1 Comments , last by Assignment.H )

Code

Article
Nothing New Since Your Last Visit  
28583
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
13. C# Interfaces (interface)

Classes and structs can inherit from interfaces in a manner similar to how classes can inherit a base class or struct, but a class or struct can inherit more than one interface and it inherits only the method names and signatures, because the interface itself contains no implementations.

class MyClass: IMyInterface
{
  public object Clone()
{
return null;
}

// IMyInterface implemented here...
}
Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code

Article
Nothing New Since Your Last Visit
16408
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
14. VB.Net Interfaces (Interface, Implements)

With VB.Net you define an interface with the Interface keyword and use it in a class with the Implements keyword. In the resulting class, you implement each property and method and add Implements Interface.Object to each as in:

Sub Speak(ByVal pSentence As String) Implements IHuman.Speak
MessageBox.Show(pSentence)
End Sub
Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code

Article
Nothing New Since Your Last Visit
16080
Hits

VB.Net Language

Mike Prestwood
15. VB Classic Interfaces

VB6 has limited support for interfaces. You can create an interface of abstract methods and properties and then implement them in one or more descendant classes. It's a single level implementation though (you cannot inherit beyond that). The parent interface class is a pure abstract class (all methods and properites are abstract, you cannot implement any of them in the parent class).

In the single level descendant class, you have to implement all methods and properties and you cannot add any. Your first line of code is Implements InterfaceName.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
11260
Hits

Visual Basic Classic

Mike Prestwood
16. C# Access Modifiers

In C#, you specify each class and each class member's visibility with an access modifier. The C# access modifiers are the traditional public, protected, and private plus the two additional .Net modifiers internal and protected internal.

Internal indicates members are accessible from types in the same assembly. Protected internal indicates members are accessible from types in the same assembly as well as descendant classes. OO purist might object to internal and protected internal and I suggest you choose private, protected, or public over them until you both fully understand them and have a need that is best suited by them.

The default for class and class members is Internal (members are accessible from types in the same assembly). This is different than with interfaces where the default for an interface is Internal but an interface's members are always public -- which makes sense but is noteworthy.

With both classes and interfaces, if you make a class public, the members are public. This applies to the other access modifiers too. For example, if you make a class protected, the members default access modifiers are protected.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit  
10689
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
17. VB.Net Access Modifiers

In VB.Net, you specify each class and each class member's visibility with an access modifier preceding class or member. The VB.Net access modifiers are the traditional Public, Protected, and Private plus the two additional .Net modifiers Friend and Protected Friend.

Friend indicates members are accessible from types in the same assembly. Protected Friend indicates members are accessible from types in the same assembly as well as descendant classes. OO purist might object to Friend and Protected Friend and I suggest you avoid them until you both fully understand them and have a need that is best suited by them.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
11681
Hits

VB.Net Language

Adam Lum
18. C-Sharp Iterators, using yield

A quick example to demonstrate the yield keyword in the .NET Framework

Posted to KB Topic: Language Details
15 years ago, and updated 13 years ago
(1 Comments , last by william.k2 )

KB Post
Nothing New Since Your Last Visit
11449
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
19. Partial Class

A partial class, or partial type, is a class that can be split into two or more source code files and/or two or more locations within the same source file. Each partial class is known as a class part or just a part. Logically, partial classes do not make any difference to the compiler. The compiler puts the class together at compile time and treats the final class or type as a single entity exactly the same as if all the source code was in a single location.

Posted to KB Topic: Object Orientation (OO)
13 years ago, and updated 13 years ago

Definition
Nothing New Since Your Last Visit
14192
Hits

Coding & OO

Mike Prestwood
20. Delphi Base Class (TObject)

In Delphi programming language (Object Pascal), all classes ultimately inherit from the base class TObject.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago
(1 Comments , last by Laver.C )

Code

Article
Nothing New Since Your Last Visit  
25305
Hits

Pascal and Delphi Coding

Mike Prestwood
21. VB.Net Abstraction (MustInherit, MustOverride, Overrides)

VB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago
(1 Comments , last by charlos.j )

Code

Article
Nothing New Since Your Last Visit
25819
Hits

VB.Net Language

Mike Prestwood
22. C# Polymorphism

C# supports the following types of polymorphism:

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
8866
Hits

C# (Visual C# & VS.Net)

Wes Peterson
23. Web, Desktop, or Hybrid: Which is the best choice?

The web has "grown up" to the point that many people now feel that it is THE way to deploy virtually everything. However, it is still primarily a document-based interface. Others believe that desktop applications are superior because they can utilize all the power of an operating system. This needn't be a debate because understanding the advantages and disadvantages of each can make it quite simple to identify the ideal deployment technology. There is also "a third way": utilize a web service to serve up data for your desktop application.

Posted to KB Topic: Coding & OO
14 years ago, and updated 13 years ago

Article
Nothing New Since Your Last Visit
7584
Hits

Coding & OO

Mike Prestwood
24. Polymorphism

A coding technique where the same named function, operator, or object behaves differently depending on outside input or influences. Usually implemented as parameter overloading where the same named function is overloaded with other versions that are called either with a different type or number of parameters. Polymorphism is a general coding technique and other specific implementations are common such as inheritance, operator overloading, and interfaces.

Posted to KB Topic: Object Orientation (OO)
19 years ago, and updated 13 years ago

Definition
Nothing New Since Your Last Visit
16987
Hits

Coding & OO

Mike Prestwood
25. VB.Net Partial Classes (Partial)

VB.Net supports both partial classes and partial methods.

Posted to KB Topic: OOP
13 years ago

Code

Article
Nothing New Since Your Last Visit
16562
Hits

VB.Net Language

Mike Prestwood
26. Delphi Prism Partial Classes (partial)

Prism supports both partial classes and partial methods using the keyword partial. A partial method is an empty method defined in a partial class.

Posted to KB Topic: OOP
13 years ago, and updated 13 years ago

Code

Article
Nothing New Since Your Last Visit
14328
Hits

Delphi Prism

Mike Prestwood
27. Delphi Interfaces (IInterface, TInterfacedObject)

You specify an interface in the type block just like you do for a class but you use the interface keywoard instead of the class keyword and in the interfaces section only. Since interfaces, by definition, do not have any implementation details, all you do is specifiy it in the type block.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code

Article
Nothing New Since Your Last Visit
26679
Hits

Pascal and Delphi Coding

Mike Prestwood
28. Delphi Prism Interfaces

With Prism, you use the Interface keyword to define an interface and then you include one or more interfaces where you specify the single class inheritance (separated by commas).

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago
(1 Comments , last by mtiede )

Code

Article
Nothing New Since Your Last Visit
16495
Hits

Delphi Prism

Peter Gruenbaum
29. Guidelines for Good Sample Code

Sample code often provides the quickest, clearest way to learn how an SDK works. If you have software engineering experience, then you should already know many principles for writing good code. However, what you may not realize is that some of the good practices that you learned for writing good production code do not apply to writing good sample code. Some techniques, such as comments and clear variable names, apply to both production code and sample code. However, there are good reasons to use hard-coded values in sample code, which should be avoided in production code, and there are good reasons to avoid object-oriented designs when writing sample code.

Posted to KB Topic: Technical Writing
13 years ago
(6 Comments , last by Rita.F )

Article
Nothing New Since Your Last Visit
20327
Hits

Technical Writing

Mike Prestwood
30. Java Interfaces (Yes)

General Info: Interface

An element of coding where you define a common set of properties and methods for use with the design of two or more classes.

Both interfaces and abstract classes are types of abstraction. With interfaces, like abstract classes, you cannot provide any implementation. However, unlike abstract classes, interfaces are not based on inheritance. You can apply an Interface to any class in your class tree. In a real sense, interfaces are a technique for designing horizontally in a class hierarchy (as opposed to inheritance where you design vertically). Using interfaces in your class design allows your system to evolve without breaking existing code.

Java Interfaces

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
8440
Hits

Java

Mike Prestwood
31. Java Inheritance (extends ParentClass)

Simple syntax example of class inheritance.

Posted to KB Topic: Language Details
14 years ago, and updated 13 years ago
(2 Comments , last by ritcha.f2 )

Code

KB Post
Nothing New Since Your Last Visit
13946
Hits

Java

Mike Prestwood
32. Delphi Prism Abstraction (abstract, override)

Prism supports abstract class members and abstract classes using the abstract keyword. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (method, procedure, or function), a property, or an event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword. Alternatively, you can use the empty keyword in place of abstract if you wish to instantiate the abstract class.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code

Article
Nothing New Since Your Last Visit
14016
Hits

Delphi Prism

Mike Prestwood
33. Delphi Inheritance (=class(ParentClass))

In Delphi, you use the class keyword followed by the parent class in parens. If you leave out the parent class, your class inherits from TObject.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code

KB Post
Nothing New Since Your Last Visit  
28603
Hits

Pascal and Delphi Coding

Mike Prestwood
34. C# Abstraction (abstract, override)

C# supports abstract class members and abstract classes using the abstract modifier. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago
(3 Comments , last by eion.r )

Code

Article
Nothing New Since Your Last Visit  
35013
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
35. An Introduction to Object Orientation Overview and introduction to object orientation. When you analyze, design, and code in an OO way, you "think" about objects and their interaction. This type of thinking is more like real life where you naturally think about how "this object" relates to "that object". Classes represent the "design" of an existing object. The values or properties of an existing object is it's current state. When designing classes, OO supports many features like inheritance (like real-life where you inherit your parents characteristics), encapsulation (hiding data), and polymorphism (the ability of one thing to act like another or in different ways).
Posted to KB Topic: Object Orientation (OO)
19 years ago, and updated 13 years ago
(4 Comments , last by mprestwood )

Article
Nothing New Since Your Last Visit
25498
Hits

Coding & OO

Mike Prestwood
36. Delphi Prism Inheritance (=class(ParentClass))

In Prism, like Delphi, you use the class keyword followed by the parent class in parens. If you leave out the parent class, your class inherits from System.Object.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit  
9925
Hits

Delphi Prism

Mike Prestwood
37. ObjectPAL Inheritance (Not Supported)

ObjectPAL does not support developer defined class creation nor sub-classing (inheritance).

Posted to KB Topic: OPAL: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit  
8370
Hits

Corel Paradox / ObjectPAL Coding

Mike Prestwood
38. C++ Inheritance (: public ParentClass)

In C++ you use the class keyword to signify a class and a colon followed by the parent class name for inheritance.

Posted to KB Topic: C++ OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9712
Hits

C++

Mike Prestwood
39. VB.Net Inheritance (Inherits ParentClass)

VB.Net uses the Inherits keyword followed by the parent class name. If you do not include Inherits, your class inherits from System.Object.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit  
12232
Hits

VB.Net Language

Mike Prestwood
40. VB Classic Inheritance (No, but see Implements.)

VB classic supports only a single "level" of interface inheritance (abstract class to implimentation class). See Implements in VB's help.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9723
Hits

Visual Basic Classic

Mike Prestwood
41. JavaScript Inheritance (No, but sort of.)

JavaScript does not offer a formal inheritance machanism. There are some tricks some developers are fond of.

Posted to KB Topic: JavaScript and AJAX
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9387
Hits

JavaScript and AJAX

Mike Prestwood
42. C# Inheritance (: ParentClass)

Simple syntax example of class inheritance.

Posted to KB Topic: Language Basics
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9938
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
43. ASP Classic Inheritance (Not Supported)

General Info: Inheritance

The concept of a class makes it possible to define subclasses that share some or all of the main class characteristics. This is called inheritance. Inheritance also allows you to reuse code more efficiently. In a class tree, inheritance is used to design classes vertically. (You can use Interfaces to design classes horizontally within a class tree.) With inheritance, you are defining an "is-a" relationship (i.e. a chow is-a dog). Analysts using UML call this generalization where you generalize specific classes into general parent classes.

ASP Classic Inheritance

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
8052
Hits

ASP Classic Coding

Mike Prestwood
44. Access VBA Interfaces

Same as in VB6. Access VBA has limited support for interfaces. You can create an interface of abstract methods and properties and then implement them in one or more descendant classes. It's a single level implementation though (you cannot inherit beyond that). The parent interface class is a pure abstract class (all methods and properites are abstract, you cannot implement any of them in the parent class).

In the single level descendant class, you have to implement all methods and properties and you cannot add any. Your first line of code is Implements InterfaceName.

Posted to KB Topic: OOP
13 years ago

Code
Nothing New Since Your Last Visit
12093
Hits

Microsoft Access

Mike Prestwood
45. C++ Interfaces (No, but mimic it.)

You can mimic an interface by using a class that has only pure-virtual functions and no member variables.

Posted to KB Topic: C++ OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
7861
Hits

C++

Mike Prestwood
46. ASP Classic Interfaces (Not Supported)

Although ASP Classic does support simple classes, it does not support interfaces.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
8645
Hits

ASP Classic Coding

Mike Prestwood
47. Java Abstraction (abstract)

Java supports marking a full class as abstract as well as class members. A subclass must either implement the abstract members or you must declare the subclass abstract (which delays the implementation to it's subclass).

Posted to KB Topic: Java
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9912
Hits

Java

Mike Prestwood
48. C++ Abstraction (=0 in a virtual method)

AbstractMemberFunction is a pure virtual function makes this class Abstract class indicated by the "=0"and NonAbstractMemberFunction1 is a virtual function.

Posted to KB Topic: C++ OOP
14 years ago, and updated 13 years ago
(13 Comments , last by Creative.D )

Code
Nothing New Since Your Last Visit
8110
Hits

C++

Mike Prestwood
49. Java Inheritance-Multiple (Interfaces Only)

Java does not support multiple implementation inheritance. Each class can have only one parent class (a single inheritance path). In Java, you can use multiple interface usage to design in a multiple class way horizontally in a class hierarchy.

Posted to KB Topic: OOP
14 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
6920
Hits

Java

Mike Prestwood
50. Version Control

We offer both Vault and SourceOffsite to manage source code. Both have nearly the same feature set and both offer a remote desktop Windows applications for checking source code in and out.

Posted to KB Topic: Working Remotely with PS
14 years ago, and updated 13 years ago

KB Post
Nothing New Since Your Last Visit
8285
Hits

Client Extranet
Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2022 Prestwood IT Solutions.   [Security & Privacy]