Great day, It's been a long day since I publish an article or short post regarding to my hobbies and skills.
Now I want to share my works since i want to become pro in the programming field and applying it to my ambition to become part of the Bitcoin Cash Developers.
I create OOP using Eclipse IDE.
This is the output:
The source code is:
Codes:
public class Bags { public static void main(String[] args){
bag area51 = new bag();
Laptop mass51 = new Laptop();
area51.Brand = "PENBENCH";
area51.Color = "Camouflage";
area51.Pocket = 5;
area51.Weight_Capacity = 2.5; area51.Zippers = 2; System.out.println("The brand of the bag is: " + area51.Brand);
System.out.println("The bag color is: " + area51.Color); System.out.println("The bags has: " + area51.Pocket +" pockets");
System.out.println("The maximum capacity of the bag is: " + area51.Weight_Capacity + "KG"); System.out.println("The bag has: " + area51.Zippers + " zippers");
System.out.println("The bag has object inside of it and that is a " + "HASUS LAPTOP");
mass51.Brand = "HASUS"; mass51.Color = "GREY METAL";
mass51.Overallspecs = "1TB HDD and 256 SSD with Geforce RTX 1650 DDR4 and Ryzen 5 3650 "; mass51.Weight = 1.5; mass51.Storage = 2;
System.out.println("The brand of the Laptop is: " + mass51.Brand); System.out.println("The Laptop color is: " + mass51.Color); System.out.println("The Laptop has: " + mass51.Overallspecs); System.out.println("The total weight of the Laptop: " + mass51.Weight + "KG"); System.out.println("The bag has: " + mass51.Storage + " Storage Type");
}
}
class bag { String Brand;
String Color; int Pocket;
double Weight_Capacity; int Zippers;
}
class Laptop {
String Brand;
String Color;
String Overallspecs;
double Weight ;
int Storage;
}
Additional:
I got a plan to create a software where in the BCH will see all the informations and brief history there. stay tuned <3
Great dear I have subscribed you dear