Professional Documents
Culture Documents
advantages:
1) When prototype is shown to the user, he gets a proper clarity and 'feel'
of the functionality of the software and he can suggest changes and
modifications.
2) This type of approach of developing the software is used for non-IT-
literate people. They usually are not good at specifying their
requirements, nor can tell properly about what they expect from the
software.
Disadvantages:
1)Too much involvement of client, is not always preferred by the
developer.
2)Too many changes can disturb the rhythm of the development team.
3)It is like college development projects. we would produce something
that performed the required functions, looked good, but usually was not
the best quality.
Class:-
In the real world, you'll often find many individual objects all of
the same kind. There may be thousands of other bicycles in
existence, all of the same make and model. Each bicycle was
built from the same set of blueprints and therefore contains the
same components. In object-oriented terms, we say that your
bicycle is an instance of the class of objects known as bicycles.
A class is the blueprint from which individual objects are
created. So it can be said as collection of same type of
objects.for example in java,
Inheritance
Inheritance is mainly used for code reusability.In the real world
there are many objects that can be specialized. In OOP, a parent
class can inherit its behavior and state to children classes.
Inheritance means using the Predefined Code. This is very main
feature of OOP, with the advantage of Inheritance we can use
any code that is previously created.. Lets say we have a class
called Car and Racing Car . Then the attributes like engine no. ,
color of the Class car can be inherited by the class Racing Car .
The class Car will be Parent class , and the class Racing Car will
be the derived class or child class
Types
single inheritance:-one derived class inherits property from one base
class
multiple :- one derived class inherits property from many base classes.
multi level :-in this many derived classes are inherited from many base
classes
hierarchical:-under this many derived classes can be inherited from
single base class
hybrid :-it’s a combination of hierarchical and multilevel.
Abstraction
Abstraction is simplifying complex reality by modeling classes
appropriate to the problem. In other words it means representing
only the important details without including all the details. It is
a Process of exploring relevant details and hiding irrelevant
details this feature is known as Abstraction. In other way
making simplicity to use complex system. One does not want to
understand how to engine works. Similarly one does not have to
understand the internal implementation of the software objects.
Encapsulation
The wrapping up of data and functions into a single unit
is called as encapsulation. Encapsulation means putting together
all the variables and the methods into a single unit called Class.
The class acts like a container encapsulating the properties. It
can be described as a protective barrier that prevents the code
and data being randomly accessed by other code defined outside
the class. Access to the data and code is tightly controlled by an
interface. For example the class car has a method turn () .The
code for the turn() defines how the turn will occur . So we don’t
need to define how Mercedes will turn and how the Ferrari will
turn separately. Turn () can be encapsulated with both.
Polymorphism
Its an important OOPs concept , Polymorphism means taking
more than one forms .Polymorphism gives us the ultimate
flexibility in extensibility. The ability to define more than one
function with the same name is called Polymorphism.
Polymorphism allows the programmer to treat derived class
members just like their parent class’s members. More precisely,
Polymorphism in object-oriented programming is the ability of
objects belonging to different data types to respond to calls of
methods of the same name .If a Dog is commanded to speak(),
this may elicit a bark(). However, if a Pig is commanded to
speak(), this may elicit an oink(). Each subclass overrides the
speak() method inherited from the parent class Animal.