Software Rem Models
Software Rem Models
Evolutionary Model
Objects –
An object is an abstraction of a real world entity or we can say it is an
instance of class. Objects encapsulates data and code into a single
unit which provide data abstraction by hiding the implementation
details from the user. For example: Instances of student, doctor,
engineer in above figure.
Attribute –
An attribute describes the properties of object. For example: Object is
STUDENT and its attribute are Roll no, Branch, Setmarks() in the
Student class.
Methods –
Method represents the behavior of an object. Basically, it represents
the real-world action. For example: Finding a STUDENT marks in
above figure as Setmarks().
Class –
A class is a collection of similar objects with shared structure i.e.
attributes and behavior i.e. methods. An object is an instance of class.
For example: Person, Student, Doctor, Engineer in above figure.
class student
{
char Name[20];
int roll_no;
--
--
public:
void search();
void update();
}
In this example, students refers to class and S1, S2 are the objects of
class which can be created in main function.
Inheritance –
By using inheritance, new class can inherit the attributes and methods
of the old class i.e. base class. For example: as classes Student,
Doctor and Engineer are inherited from the base class Person.