All Articles

Main features of Object Oriented Languages – Classes, Objects, Encapsulation, Polymorphism, Inheritance

1. Classes and Objects In an object oriented programming language, we code the program as a corporate collection of objects which are instantiated from various class abstractions. A class is only a logical abstraction and has no physical existence. An object is a specific instance of the class and it has physical existence inside the…

All Articles

Abstraction

Abstraction may be defined as all those essential characteristics features of an object class which makes it different from other object classes. Abstraction as applied to inheritance refers to the specific features defined for each subclass in the class hierarchy. Such a representation of the object class including only its essential attributes and operations, leaving…

Multiplicity
All Articles

Multiplicity

Multiplicity refers to the number of object class instances of one class may be associated to the other class. An n+ symbol indicates that there can be n or >n associations of the object class near to the n+ symbol to the other associated class. A solid ball indicates 1 or >1 associations and a…

All Articles

Inheritance

Inheritance is the most basic feature of any Object Oriented programming language. It refers to the derivation of sub classes from a base/super class. The inherited sub classes inherit the common / basic features of the base / super class at the same time implements their own specific features. Inheritance helps us to reduce the…