Skip to content

Instantly share code, notes, and snippets.

@sanjibnarzary
Created April 10, 2020 17:41
Show Gist options
  • Save sanjibnarzary/9a2af7db3b31e576f9ec721a7c473029 to your computer and use it in GitHub Desktop.
Save sanjibnarzary/9a2af7db3b31e576f9ec721a7c473029 to your computer and use it in GitHub Desktop.
void main(){
print("Hello World");
Student s = new Student(23,"Sanjib Narzary","G1234");
print(s.roll);
}
class Student{
int age;
String name;
String rollNumber;
Student(int age, String name, String rollNumber){
this.age = age;
this.name = name;
this.rollNumber = rollNumber;
}
String get roll{
return rollNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment