+ 1

Is this statement true for all languages that support Object Oriented Programming?

"An instance of the subclass is an instance of the superclass"

19th Jun 2023, 12:04 PM
Bishnu Chalise
Bishnu Chalise - avatar
3 Answers
+ 2
Subtyping and inheritance are fundamental concepts that describe the relationship between objects in OOP languages. Here you can read about these concepts and how they appeared in the ancestor of all object-oriented languages: Simula and Smalltalk. https://www.cl.cam.ac.uk/teaching/1011/ConceptsPL/SIMULA-Smalltalk.pdf The implementation of these ideas can differ a little bit across languages, but the concept is more or less the same.
19th Jun 2023, 5:38 PM
Tibor Santa
Tibor Santa - avatar
+ 3
Not true only few like Java, C++, C#
19th Jun 2023, 12:22 PM
A͢J
A͢J - avatar
0
Every programming languages has its own rules. Not all languages follow the same statement
19th Jun 2023, 3:30 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar