Polymorphism and Dynamic Binding - Comparison

1.    Everything in an OO paradigm is an object.
2.    Each object is an instance of a class.
3.    A class is the definition of methods and data, which are other objects.
4.    An object of a class encapsulates its own state (data values) but the same behavior (methods).
5.    A class may communicate with others via messages, which requests associate with required arguments. By this way, a class can ask other classes to perform actions without knowing the details of the work under those actions. This is called Information Hiding.
6.    A class may inherit another class properties. Let class A inher¬its from class B. Then, class A is a subclass of class B and, on the other way around, class B is a superclass of class A.
7.    All classes can be arranged into an inheritance hierarchy, which is a single root tree. These specifications belong to the inter¬face part of a new OOP learning environment.
8.    A class can override behaviors inherited from its superclass.
9.    More than one class may share some common interface but embed different details inside. This is called

Polymorphism, which means many forms.
Method is the way to define behavior for a class. The conceptual framework of objects is called an object model which has four essential elements:
1.    Abstraction: Revealing only necessary information to viewers.
2.    Encapsulation: The interior views of objects.
3.    Modularity: Breaking down a system to a set of cohesive and loosely-coupled modules.
4.    Hierarchy: “is a “(inheritance) and “part or (aggregation).

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment