Professional Documents
Culture Documents
Computer Science
Chap 3 : General OOP Concepts
High level language offered English like keywords, constructs for sequence, selection and
iteration and use of variables and constants. The programs written in HLLs are converted into
machine language using compiler or interpreter.
Paradigm :
Paradigm means organizing principle of a program. It in an approach to programming.
Module :
A set of related procedures with the data they manipulate is called a module.
Procedural Programming:
A program in a procedural language is a list of instructions where each statement informs the
computer to do some process. The algorithm needed to perform the desired computation.
Classes Vs Objects :
A class is a prototype or blueprint which defines variables and methods common to all object
of a certain type.
A class determines the state and behaviour of all the objects of its type. A class is called object
factory because by using a type of class different objects can be created with similar
characteristics. A class is not itself the object it describes. A class is an abstract type where as
objects are the instance of the type.
A method or function is a subprogram that works on data and often returns a value.
(b) Inheritance
The way by which one object acquires the properties of another object. One of the basic
benefit is that programming code once defined can be reused.
(c) Polymorphism
The way of an interface to do different things based on the data of different types it
accepts and provide the proper expected output accordingly. Same message should
respond through two or more classes in different ways.
(d) Encapsulation
A wrapper which prevents the data and the code from being accessed by any other code
defined outside.
(f) Modularity :
The act of partitioning a program into individual components is called modularity.
Property of a system that has been decomposed into a set of cohesive and loosely
coupled modules. It reduces its complexity in some degree and it creates a number of
well-defined, documented boundaries within the program.