Author Archives: Admin

Class Events

Events are functions that are triggered based on the result of a condition.
Events are used by Objects or classes to trigger event handler methods in other objects or classes.
Any number of event handler methods can be called when an event is triggered.
The link between a trigger and its handler method is decided dynamically at run-time.

Objects

Objects establish the key concept in object oriented programming.
An object is a self-contained unit that has its own status, behavior and identity.
Objects are patterns or instances of classes.
An object has the following three main characteristics −

Inheritance

Inheritance is one of the most important object-oriented programming concept.
Inheritance allows to derive a new class from an existing class.
Inheritance allows user to define the new class with the characteristics of the existing class which is already defined.

Polymorphism

Using inheritance, the methods in the super class can redefine in subclass by using a reference variable that address the superclass objects.
The redefined methods can have different implementation in subclass from base class.
When the super class addressed, the method has original implementation.
When the subclass addressed, the method has a new and different implementation.
Using a single reference variable to call the same named methods that are behaving differently called polymorphism.

Exception Handling

What is Exception? Exception is an runtime errors that occurs during the program execution. The runtime errors can be of two types – Catchable Runtime Errors which can be caught using the exception handling. Non-Catchable Runtime Errors which always results the termination of program. Normally exceptions might occur due to performing an invalid operation or […]