Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package student;
- /**
- *
- * @author CSE_IT
- */
- public class Student {
- String name,dept,id;
- Student(String name, String id, String dept){
- System.out.println("Name: "+name);
- System.out.println("ID: "+id);
- System.out.println("Dept: "+dept);
- System.out.println("\n");
- }
- public static void main(String[] args) {
- Student obj = new Student("Shuvo","1830150198","CSE");
- Student obj2 = new Student("Riku","18301950","EEE");
- Student obj3 = new Student("Rah","18301955","CSE");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement