Created
June 3, 2021 12:12
-
-
Save Bharathh-Raj/623ad657373e4e7b58dd37d874abbecb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Student{ | |
String id; | |
String name; | |
int english; | |
int mathematics; | |
int science; | |
String displayAsString(){ | |
return "Student ID:$id\nStudent Name:$name\nEnglish:$english\nMathematics:$mathematics\nScience:$science"; | |
} | |
void save(){ | |
Database db = Database(); | |
db.insert('INSERT INTO Student(id, name, english,tamil,mathematics,science) VALUES($id,$name, $english, $mathematics,$science)'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment