Skip to the content.

Classes and Object

what is classes ?

In object-oriented terms, we say that your bicycle is an instance of the class of objects known as bicycles. A class is the blueprint from which one object are created.

what is objects ?

Bundling code into individual software objects provides a number of benefits, including:

Binary, Decimal and Hexadecimal Numbers

Decimal

Every digit in a decimal number has a “position”, and the decimal point helps us to know which position is which: example of Decimal

Bases

The Decimal Number System is also called “Base 10”, because it is based on the number 10. while there’s no 10, it starts from 0,1,2,3,4,5,6,7,8,9

Counting with Different Number Systems

use 2 (“Binary”), 16 (“Hexadecimal”),

Binary Numbers

Binary Numbers are just “Base 2” instead of “Base 10”. So you start counting at 0, then 1, then you run out of digits … so you start back at 0 again, but increase the number on the left by 1.

Binary numbers

Hexadecimal Numbers

They look the same as the decimal numbers up to 9, but then there are the letters (“A’,”B”,”C”,”D”,”E”,”F”) in place of the decimal numbers 10 to 15.