-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathles22.dart
33 lines (32 loc) · 1006 Bytes
/
les22.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//--> OOP- class- implements and inheritance
void main (){
Student h=Student();
h.eat();
}
class Human {
String? name;
void eat (){
print ('Human Eating');
}
}
class KaizonStudents{
String? department;
double? gpa;
}
class X {
String? Xname;
String? Xemail;
}
class Student extends Human implements KaizonStudents,X {
String? studyAt; //Error: The non-abstract class 'Student' is missing implementations for these members:
// - KaizonStudents.department
// - KaizonStudents.gpa
//--> SO,,,
//--> implements for KaizonStudents .. all body contents
String? department; // should be add one by one even the void and methods functions etc..!!
double? gpa; //--> then run file ... [Running] ....[Done].
//--> implements for X...
//String? Xname;
//String? Xemail;
//-----GOOD_LUCK-----------------------------------------------------------
}