Skip to content

Commit 4980cc9

Browse files
authoredJun 22, 2020
Update README.md
1 parent 4cfd719 commit 4980cc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎Classes/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
### A class is essentially a data type. Whenever we create an instance of a class we declare it so say I want to declare 10 dog ages i would go and say
22
### int dogAge1= 3; and say int dogAge2=12; This is inefficient and is a waste of time.
33
### Within a class we have methods and we have attributes. An attribute is similar to variables in that they hold information for us.
4-
### We want to have 2 attributes for our dog class the Name and the age. Classes allow us to build very large application without having to code
5-
### every small bit by ourselves. We have a blue print of how sth might look. Say I have a person Class and wanted to describe a specific the person the details are ### what’s called attributes. If we wanted to build a large scale application we do not want to describe every single person specifically using a bunch of different ### variables. This would be a waste of time. Instead, we create a blueprint of what a person might look like.
4+
### We want to have 2 attributes for our dog class the Name and the age. Classes allow us to build very large application without having to code every small bit by ourselves. We have a blue print of how sth might look. Say I have a person Class and wanted to describe a specific the person the details are ### what’s called attributes. If we wanted to build a large scale application we do not want to describe every single person specifically using a bunch of different ### variables. This would be a waste of time. Instead, we create a blueprint of what a person might look like.
65
### We can say two fields:
76
## - a name variable
87
## - a talk method

0 commit comments

Comments
 (0)