forked from submit50/submit50
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses.html
More file actions
54 lines (47 loc) · 2.15 KB
/
Copy pathclasses.html
File metadata and controls
54 lines (47 loc) · 2.15 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
<!DOCTYPE html>
<html>
<head>
<title>OOPS - Classes</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-Oriented Class</h2>
<p>A class should:</p>
<ul>
<li>Provide a well-defined interface - such as the remote control of the television.</li>
<li>Represent a clear concept - such as the concept of a television.</li>
<li>Be complete and well-documented - the television should have a plug and should have a manual that documents all features.</li>
<li>It is complete when we purchase it, with any external requirements well documented.</li>
</ul>
<p>
Classes allow us a way to represent complex structures within a programming language. They have two components:
</p>
<ul>
<li><b>States</b> - (or data) are the values that the object has.</li>
<li> <b>Methods</b> - (or behaviour) are the ways in which the object can interact with its data, the actions.</li>
</ul>
</div>
<div id="footer" class="col-12">©ambalika2019</div>
</div>
</div>
</body>
</html>