Ada 95 is a high-level programming language with strong typing and object-oriented features. It was designed to be safe, reliable, and efficient for use in large-scale systems. The Ada 95 language was developed by a team led by Jean Ichbiah at Honeywell Bull in the 1980s and 1990s. The language was named after Ada Lovelace, who is considered to be the world's first computer programmer.Ada 95 is a language that emphasizes safety and reliability. It has features that make it easier to write correct programs, such as strong typing and modularity. Ada 95 also has features that make it easier to write large-scale programs, such as object-oriented programming and task-based concurrency.
Object Oriented Programming in Ada 95
Ada 95 was designed to be a language that supports object-oriented programming. In Ada 95, objects are created using records and packages. Records are used to define the structure of an object, while packages are used to define the behavior of an object. Ada 95 also supports inheritance, polymorphism, and encapsulation.
Encapsulation in Ada 95
Encapsulation is a key concept in object-oriented programming. It refers to the practice of hiding the implementation details of an object from the outside world. In Ada 95, encapsulation is achieved through the use of private types and private packages. Private types are used to define the structure of an object, while private packages are used to define the behavior of an object.
Inheritance in Ada 95
Inheritance is another key concept in object-oriented programming. It refers to the ability of one object to inherit the properties and methods of another object. In Ada 95, inheritance is achieved through the use of derived types. A derived type is a new type that is based on an existing type.
Polymorphism in Ada 95
Polymorphism is the ability of an object to take on multiple forms. In Ada 95, polymorphism is achieved through the use of dynamic dispatching. Dynamic dispatching allows a program to determine the correct method to call at runtime based on the type of the object.
Concurrency in Ada 95
Concurrency is the ability of a program to perform multiple tasks at the same time. In Ada 95, concurrency is achieved through the use of tasks. Tasks are independent units of execution that can run concurrently with other tasks.
Task Synchronization in Ada 95
Task synchronization is the process of coordinating the execution of tasks. In Ada 95, task synchronization is achieved through the use of protected objects. Protected objects are used to provide mutual exclusion and conditional synchronization between tasks.
Exception Handling in Ada 95
Exception handling is a mechanism for dealing with errors and other exceptional conditions in a program. In Ada 95, exception handling is achieved through the use of exceptions. Exceptions are objects that represent errors or other exceptional conditions.
Ada 95 and Safety-Critical Systems
Ada 95 was designed to be a language that is suitable for use in safety-critical systems. Safety-critical systems are systems that are designed to protect human life or property. Examples of safety-critical systems include medical devices, aircraft control systems, and nuclear power plants.
Ada 95 and Real-Time Systems
Ada 95 was also designed to be a language that is suitable for use in real-time systems. Real-time systems are systems that must respond to events in a timely manner. Examples of real-time systems include control systems, communication systems, and multimedia systems.
Conclusion
Ada 95 is a powerful and versatile programming language that is well-suited for use in large-scale, safety-critical, and real-time systems. Its object-oriented features, concurrency support, and exception handling mechanisms make it a popular choice for developers who need to build reliable and efficient software. Whether you are building medical devices, aircraft control systems, or multimedia systems, Ada 95 has the features you need to get the job done.
Related video of Ada 95 The Craft Of Object Oriented Programming