-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractise.html
More file actions
88 lines (86 loc) · 4.04 KB
/
practise.html
File metadata and controls
88 lines (86 loc) · 4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<title>
Object orirnted programming (oops) </title>
<style type="text/css">
.ul{
margin:0px;
padding:0px;
list-style-type:none;
overflow:hidden;
}
a:hover,a:active{
background-color:#7a991a;}
#li{
float:left;
display:block;
background-color:#98bf21;
width:100px;
text-align:centre;
text-transform:uppercase;}
h2{
color:#aadd45;
text-shadow: 1px 3px 1px rgb(29,20,45);
}
img{
width:2000px;
height:1000px;
}
p
{
text-algin:justify;
font-size:24px;
}
</style>
</head>
<body>
<ul class=ul>
<li id="li"><a href="#">Menu</a></li>
<li id="li"><a href="#">Blog</a></li>
<li id="li"><a href="#">About us</a></li>
<li id="li"><a href="#">Services</a></li>
<li id="li"><a href="#">Contact Us</a></li>
</ul>
<h1 style="text-align:right;"> Object oriented programming</h1>
<p>The major motivating factor in the invention of oops is to remove some of flows encounter in Procedureal language. OOPs treat data as an critical element in program development and does not allow it to flow freely around the system.
It ties data more closely to the function and protect it from the acidential modification from outside world. OOPs allow decomposition of program into number of entities called objects.</p>
<ul>
<li>Emphasis is on object rather than procedure.</li>
<li>Object may communicate with each other by sending messages.</li>
<li> Data is hidden and cannot be acessible to outside the program.</li>
<li>Program is divided into entities called objects.</li>
<li>Data structure are designed such that they are characterized the objects.</li>
<li> Follow bottom up approach.</li></ul>
<img src='altumcode-dMUt0X3f59Q-unsplash.jpg'/>
<h2>Basic terminology </h2>
<ol>
<li>OBJECTS</LI>
<li>CLASSES</li>
<li>ENCAPSULATION</li>
<li>ABSTRACTION</li>
<li>INHERITANCE</li>
<li>POLYMORIPHISM</li>
<li>MESSAGE PASSING<li>
</ol>
<h2>Objects</h2>
<p> Objects are the basic runtime runtime entity in oops.They may represent a person ,place ,or anything that a programmer need to handle. Program is analysised in term of objects and mature communication between them.
When a program is executed the objects may communicate with each other by sending messages.</p>
<h2>Classes</h2>
<p> We mentioned that object contains code and data to manipulate the data. The entire set of data and code of an object made by a user defined data type with the help of class. Once a class is defined,
we can create a number of objects of it. Classes is a collection of objects. Class is a user defined data type but behave like bulid in data type.</p>
<h2>Encapsulation</h2>
<p>The wraping up of data and function into a single unit is called data encapsulation. data hiding is one of the important features of oops. Data is hidden and cannot be accessible to outside world .
only those function which are wrappes into the class can access it.</p>
<h2>Abstraction</h2>
<p>Abstraction refer to the act of representing actual information without including the background details.Classes uses the concept of abstraction and are defined as a list of abstract attributes. They encapsules all the essential information of an object.
The attribute are sometimes called as data memeber because they held the information. The function that operates on this data member are called as Methods. Since, classes uses the concept of abstraction so they are called as <span style="text-decoration:underline;">
abstact data type.</span></p>
<h2>Polymorphism</h2>
<p>It is GREEK word which means , the ability to take more than one form. Any operation may behave different behaviour in different different instances. The behaviour depends upon the type if data are to be used .
For example, if operation addition is applied on integer operands than the result will be integer value. and if the operands are strings than they concatenate and produce the third string.</p>
<h2>Message passing</h2>
<p> Objects may communicate with each other by sending messages just as the human pass message by communicate each other.</p>
<a href="next page.html">Next page</a>
</body>
</html>