Friday, September 18, 2020

Student Class - Java Prorgram ( जावा क्रमादेश)

 class student

{

     int  admid; 

    String  name;

  String  course;

  String  batch;  

  public void get_data()

    { 

    admid = 43460;

    name  = "Ankita Sharma";

    course = "BCA";

    batch = "2018-2021";

 

  }


  public void show_data()

  { 

    System.out.println("admin id ->" + admid);

    System.out.println("\n name "+ name);

    System.out.println("\n Course "+ course);

     System.out.println(" \n Batch " + batch);

  }

}


class class_main

{

  public static void main(String args[])

  {

    student obj = new student();

    obj.get_data();

    obj.show_data();

  }

}


No comments:

Post a Comment

Financial Year Oracle PLSQL Program

 CREATE OR REPLACE function FINANCIAL_YEAR(p_date DATE) return varchar2 IS    v_first     varchar2(4);    v_second    varchar2(4);    v_year...