0% found this document useful (0 votes)
19 views1 page

Classes:-: Object

Object-oriented programming displays real-world objects as runtime entities that are uniquely identifiable by name. A class defines attributes and methods to implement an abstract data type. Inheritance allows objects in subclasses to acquire properties from objects in parent classes in a hierarchical order, similar to how genes are passed down from ancestors, modeling real-life hierarchical relationships. Some advantages of inheritance include allowing for development of models that more closely resemble real-world hierarchical relationships between objects.

Uploaded by

Deshta Onz Ankit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Classes:-: Object

Object-oriented programming displays real-world objects as runtime entities that are uniquely identifiable by name. A class defines attributes and methods to implement an abstract data type. Inheritance allows objects in subclasses to acquire properties from objects in parent classes in a hierarchical order, similar to how genes are passed down from ancestors, modeling real-life hierarchical relationships. Some advantages of inheritance include allowing for development of models that more closely resemble real-world hierarchical relationships between objects.

Uploaded by

Deshta Onz Ankit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

OBJECT:- The single most important feature of an object-orientel language is an object

uniquely identifiable by a name.to understand the class the concept of object should be clear in
the object oriented programing .in object oriented system an object is a run time entity the
result of object oriented programming displays many real word object all living and non-living
things can be treated as an object so all the nouns can be used as an object .

CLASSES:- A Class is the implementation of an abstact data type (ADT).it define


attributes and method which implement the data srtucture and operations of the
ADT,respectively.

Inheritance and class hierarchy:- in the living organism system


,inheritance occurs .as each person inherist some genes fram his ancestors and also
passes on some genes to be descendants . the idea of inheritance is derived from the
classes . inheritance is process by which object of one class acquire the properties of
object of object of another class .it is in hierarchical order .for example crow is a flying
example ,class of animal is divided into living organism so you see that each sub-class
shares common characteristic with the class from which it is derived .for example
mountain bike ,road bike and tandem bike inherist the behaviour from bicycle as shown
in the some of the improtant advantages of inheritance are :-1.Real life object model:it
support a development model that is closer to real life object model with hierachical
relationship.

You might also like