Your Ad Here

Friday, July 4, 2008

Object ......... languages

Object based languages is base on the idea of encapsulating stae and operations inside objects. They will not support inheritance and subtyping.Those languages which support both inheritance and subtyping are object oriented languages.Here are object oriented languages Simula, Smalltalk, C++, Objective-C, Eiffel, Python, Java, C#, Visual Basic .NET and REALbasic . An example of a language that is object-based but not object-oriented is Visual Basic (VB). VB supports both objects and classes, but not inheritance, so it does not qualify as object-oriented.Sometimes the term "object-based" is applied to prototype-based languages, true object-oriented languages that do not have classes, but in which objects instead inherit their code and data directly from other "template" objects. An example of a commonly used prototype-based language is JavaScript.

No comments: