Advertisement
ms_olin

Untitled

Feb 27th, 2017
7,554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. package com.panelic.kalkulator;
  2.  
  3. public class ModelActivity {
  4.     double m_num1, m_num2;
  5.  
  6.     //constructor
  7.     public ModelActivity(double num1, double num2){
  8.         this.m_num1 = num1;
  9.         this.m_num2 = num2;
  10.     }
  11.  
  12.     //setters
  13.     public void setNum1(double num1){
  14.         this.m_num1 = num1;
  15.     }
  16.  
  17.     public void setNum2(double num2){
  18.         this.m_num2 = num2;
  19.     }
  20.  
  21.     //getters
  22.     public double getNum1(){
  23.         return this.m_num1;
  24.     }
  25.  
  26.     public double getNum2(){
  27.         return this.m_num2;
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement