Jump to content

You could do some programming on Objects and Constructors
 
 
eg
 

public class Dog	{	public String breed;	public int age;	public String colour;		public Dog()	{				breed = "labrador";		age = 2;		colour = "brown";			}	public Dog(String b, int a, String c)	{				breed = b;		age = a;		colour = c;			}	public static void main(String[] args)	{		// TODO Auto-generated method stub		Dog d1 = new Dog();		Dog d2 = new Dog("Pitbull", 5, "brown");		System.out.println(d1.age + d2.age);	}		} 

Main PC: CPU: i7-4770k RAM: 16GB Kingston HyperX Blu SSD: Samsung 850 Pro 256GB HDD: 1TB WD Blue GPU: ASUS GeForce GTX 770 2GB PSU: Corsair CX600M Case: Bitfenix Shinobi OS: Windows 10 Pro 64-Bit

 

Laptop: ASUS N56VJ

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×