Unit 2 Introduction
Unit 2 Introduction
Each of these language has a unique set of keywords and special syntax for
organizing program instruction.
The selection of language for writing a program
depends on the following factors:
The type of computer hardware and software on which the program is to be executed.
The type of program.
The expertise and availability of the programmers.
Features to write the application.
The built-in features that support the development of software that are reliable and less
prone to crash.
Lower development and maintenance costs.
Stability and capability to support even more than the expected simultaneous users.
Elasticity of a language that implies the ease with which new features (or functions) can be
added to the existing program.
Portability.
Better speed of development that includes the time it takes to write a code, time taken to
find a solution to the problem at hand, time taken to find the bugs, availability of
development tools, experience and skill of the programmers, and testing rules.
1.2.Generation of programming language
• In 1940s when computer were being developed, there was just
one language- machine language.
• Disadvantages:
Procedural programming
3. structured programming
• It is referred to as modular programming .
• C, pascal.
• Eg. +operator.
Containership
• It is the ability of a class to contain objects of
one or more classes as member data.
• It is also called composition.
• Containership represents a ‘has-a’
relationship.
Reusability
• It means developing codes that can be reused
either in the same program or in different
programs.
• Python gives the importance to building
programs that are reusable.
• It attained through inheritance, containership
and polymorphism.
Delegation
Delegation is a design pattern in which an object, called the delegate, is responsible for
performing certain tasks on behalf of another object, called the delegator