forked from submit50/submit50
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject.html
More file actions
43 lines (37 loc) · 2.25 KB
/
Copy pathobject.html
File metadata and controls
43 lines (37 loc) · 2.25 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
<!DOCTYPE html>
<html>
<head>
<title>OOPS - Objects</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, intial-scale=1">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="container">
<div class="row">
<div id = "header" class="col-12">
<h1>OBJECT ORIENTED PROGRAMMING</h1>
</div>
<div class="left_menu col-sm-4 col-12" >
<ul>
<li><a href="index.html">Introduction</a></li>
<li><a href="classes.html">Classes</a></li>
<li><a href="object.html">Object</a></li>
<li><a href="encapsulation.html">Encapsulation</a></li>
<li><a href="inheritance.html">Inheritance</a></li>
<li><a href="polymorphism.html">Polymorphism</a></li>
<li><a href="ref.html">References</a></li>
</ul>
</div>
<div id="content" class="col-sm-8 col-12">
<h2>An Object</h2>
<p>An object is an instance of a class. You could think of a class as the description of a concept, and an object as the realisation of this description to create an independent distinguishable entity. For example, in the case of the Television, the class is the set of plans (or blueprints) for a generic television, whereas a television object is the realisation of these plans into a real-world physical television. So there would be one set of plans (the class), but there could be thousands of real-world televisions (objects).</p>
<p>
Objects can be concrete (a real-world object, a file on a computer) or could be conceptual (such as a database structure) each with its own individual identity. Figure 1.3 shows an example where the Television class description is realised into several television objects. These objects should have their own identity and are independent from each other. For example, if the channel is changed on one television it will not change on the other televisions.
</p>
</div>
<div id="footer" class="col-12">©ambalika2019</div>
</div>
</div>
</body>
</html>