Advertisement
makispaiktis

Streaming - Bot.java

Nov 11th, 2019 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public class Bot{
  2.  
  3.     // Variables
  4.     String name;
  5.     Streamer owner;
  6.    
  7.     // Constructors
  8.     Bot(){
  9.         name = "";
  10.         owner = new Streamer();
  11.     }
  12.    
  13.     Bot(String name, Streamer owner){
  14.         this.name = name;
  15.         this.owner = owner;
  16.     }
  17.    
  18.    
  19.     // Methods
  20.     void showStatus(){
  21.         System.out.println("*********************************");
  22.         System.out.println("Name of bot: " + name);
  23.         System.out.println("Streamer/owner of " + name + ": " + owner.name);
  24.         System.out.println();
  25.         System.out.println("*********************************");
  26.     }
  27.    
  28.    
  29.  
  30. }   // END OF CLASS BOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement