Can anyone explain from a language/environment agnostic perspective the difference between these two notions?
Also is there a set of conditions that programming language
Ability of a programming language to examine the type or properties of an object at runtime.
Example (Java):
String myObj1 = new String();
MyCustomObject myObj2 = new MyCustomObject();
if(myObj2 instanceof MyCustomObject) {
System.out.println("This is an example of type interospection");
}
Ability of a programming language to achieve below things at runtime.