Pastebincom

[Java] Bicycle – Pastebin.com

Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Java program to illustrate the

  2. // concept of inheritance

  3. // from G4G

  4.  

  5. // base class

  6. class Bicycle

  7. {

  8.     // the Bicycle class has two fields

  9.     public int gear;

  10.     public int speed;

  11.        

  12.     // the Bicycle class has one constructor

  13.     public Bicycle(int gear, int speed)

  14.     {

  15.         this.gear = gear;

  16.         this.speed = speed;

  17.     }

  18.        

  19.     // the Bicycle class has three methods

  20.     public void applyBrake(int decrement)

  21.     {

  22.         speed -= decrement;

  23.     }

  24.        

  25.     public void speedUp(int increment)

  26.     {

  27.         speed += increment;

  28.     }

  29.    

  30.     // toString() method to print info of Bicycle

  31.     public String toString()

  32.     {

  33.         return(“No of gears are “+gear

  34.                 +n

  35.                 + “speed of bicycle is “+speed);

  36.     }

  37. }

  38.  

  39. //

Read More

Vehicle simulator script – Pastebin.com

  • — Made by Tokumei/Aresuu

  • — Join this group https://www.roblox.com/My/Groups.aspx?gid=4572322

  • — Instances:

  • local VehicleSimulator = Instance.new(“ScreenGui”)

  • local VSV1 = Instance.new(“Frame”)

  • local GiveAllPerks = Instance.new(“TextButton”)

  • local SuperCar = Instance.new(“TextButton”)

  • local CrateESP = Instance.new(“TextButton”)

  • local Speed = Instance.new(“TextButton”)

  • local SpeedBind = Instance.new(“TextBox”)

  • local Torque = Instance.new(“TextButton”)

  • local Torquet = Instance.new(“TextBox”)

  • local NitroSpeed = Instance.new(“TextButton”)

  • local NST = Instance.new(“TextBox”)

  • local Title = Instance.new(“TextLabel”)

  • local TeleportLT = Instance.new(“TextButton”)

  • local TeleportToCar = Instance.new(“TextButton”)

  • local MadebyTokumeiAresuu = Instance.new(“TextLabel”)

  • local CreditOwners = Instance.new(“TextLabel”)

  • local NitroForce = Instance.new(“TextButton”)

  • local NFT = Instance.new(“TextBox”)

  • local JumpHeight = Instance.new(“TextButton”)

  • local JHT = Instance.new(“TextBox”)

  • local TptoCrate = Instance.new(“TextButton”)

  • local Open = Instance.new(“TextButton”)

  • local Close = Instance.new(“TextButton”)

  • –Properties:

  • VehicleSimulator.Name = “Vehicle Simulator”

  • VehicleSimulator.Parent = game.CoreGui

  •  

  • VSV1.Name = “VSV1”

  • VSV1.Parent = VehicleSimulator

  • VSV1.Active = true

  • VSV1.BackgroundColor3 = Color3.new(0, 0, 0)

  • VSV1.BackgroundTransparency = 0.10000000149012

  • VSV1.BorderColor3 = Color3.new(0.501961, 0, 0)

  • VSV1.BorderSizePixel = 6

  • VSV1.Position = UDim2.new(0.155411661, 0, 0.117529884, 0)

  • VSV1.Size = UDim2.new(0, 325, 0, 332)

  • VSV1.Draggable =

  • Read More