On to 3 months in open colleges, I knew a little about C++ going into the study, But I have learnt a lot in these three months, Starting from Variables and primitive data types of int, floats, Char and Boolean to name constants.
Type | Minimum value | Maximum value | Size in bytes |
---|---|---|---|
byte | -128 | 127 | 1 |
short | -32,768 | 32,767 | 2 |
int | -2,147,483,648 | 2,147,483,647 | 4 |
long | -9,223,372,036,854,775,808 | 9,223,372,036,854,775,807 | 8 |
I am enjoying this growth and learning even though like learning any new language This will not be a quick process for me, But I am determined to achieve a high level of programming. So I am going over the exercises and re-writing the exercises over and over memorising them. Onto module 4 and understanding inheritance Awesome!
public class Employee
{
private int id;
private double salary;
public int getId()
{
return id;
}
public double getSalary()
{
return salary;
}
public void setId(int idNum)
{
id = idNum;
}
public void setSalary(double sal)
{
salary = sal;
}
}