SlideShare a Scribd company logo
Object Oriented Programming
Chapter 2: Array of objects
Prepared by: Mahmoud Rafeek Alfarra
2016
Chapter2 array of objects
Outlines
◉ User defined type
◉ Array of User defined type (new class)
◉ Passing Objects to Methods
◉ Immutable Objects and Classes
◉ Full Example
Note: I have prepared this material Based on (Liang: “Introduction to Programming using Java”, 10’th edition, 2015)
Lecture
Let’s think on fieldes of class
3
o As the defined class is a new data type, we can defined any
variables or arrays of it.
User defined type
Array of User defined type
int sal;
int id;
String name;
…
Employee class
e1
e2
e3
e4
e5
e6
e7
e8
Employee [ ] x ;
Array of User defined type
o An array of objects is actually an array of reference variables.
Circle[] circleArray = new Circle[10];
Array of User defined type
Class [ ] x ;
Add objects
Delete objects
Looking for objects
Printing all data
….
Class
To management many objects
which are stored in array
o Passing by value for primitive type value (the value is passed to
the parameter)
o Passing by value for reference type value (the value is the
reference to the object)
Passing Objects to Methods
Passing Objects to Methods
o For a class to be immutable, it must mark all data fields private
and provide no mutator methods and no accessor methods that
would return a reference to a mutable data field object.
o If the contents of an object cannot be changed once the object
is created, the object is called an immutable object and its class
is called an immutable class.
Immutable Objects and Classes
Immutable ?
public class Student {
private int id;
private BirthDate birthDate;
public Student(int ssn,
int year, int month, int day) {
id = ssn;
birthDate = new BirthDate(year, month, day);
}
public int getId() {
return id;
}
public BirthDate getBirthDate() {
return birthDate;
}
}
public class BirthDate {
private int year;
private int month;
private int day;
public BirthDate(int newYear,
int newMonth, int newDay) {
year = newYear;
month = newMonth;
day = newDay;
}
public void setYear(int newYear) {
year = newYear;
}
}
Example: ContactBook
int serial;
String name;
String mobile;
String address;
…
Contact class
int count;
void search(){}
void print(){}
void insert(){}
…
ManagArray class
e1
e2
e3
e4
e5
e6
e7
e8
Contact [ ] conArray ;
Contact book
class Contact {
private String name;
//….
public Contact (String name, String mobile) { … }
}
class ManagArray {
private Contact [ ] contBook;
private int count;
// …
public ManagArray(int size){ … }
public void insert(Contact c) { …. }
public void printData() { … }
public void searchByName(String name) { … }
}
static int x;
class Test
obj1
X = 0X = 1
obj2
X = 2
obj3
X = 3
Now:
Print Obj1.X
3
Print Obj1.X
3
Print Obj1.X
3
Practices
Group 1
Give 3 examples to
array of objects.
Group 2
Diffrenciate between
Passing by value and
by reference.
Group 3
Develop Immutable
class.
THANKS!
Any questions?
You can find me at:
Fb/mahmoudRAlfarra
Staff.cst.ps/mfarra
Youtube.com/mralfarra1
@mralfarra
Ad

Recommended

Object Oriented Programming_Lecture 2
Object Oriented Programming_Lecture 2
Mahmoud Alfarra
 
‫Object Oriented Programming_Lecture 3
‫Object Oriented Programming_Lecture 3
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - مفاهيم أساسية
البرمجة الهدفية بلغة جافا - مفاهيم أساسية
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - تعدد الأشكال
البرمجة الهدفية بلغة جافا - تعدد الأشكال
Mahmoud Alfarra
 
‫‫Chapter4 Polymorphism
‫‫Chapter4 Polymorphism
Mahmoud Alfarra
 
Object and class
Object and class
mohit tripathi
 
‫Chapter3 inheritance
‫Chapter3 inheritance
Mahmoud Alfarra
 
Class or Object
Class or Object
Rahul Bathri
 
Data members and member functions
Data members and member functions
Marlom46
 
البرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثة
Mahmoud Alfarra
 
Class and object in c++
Class and object in c++
NainaKhan28
 
ITFT-Classes and object in java
ITFT-Classes and object in java
Atul Sehdev
 
Class and Objects in Java
Class and Objects in Java
Spotle.ai
 
CLASS & OBJECT IN JAVA
CLASS & OBJECT IN JAVA
Riaj Uddin Mahi
 
Lect 1-class and object
Lect 1-class and object
Fajar Baskoro
 
Class and object in C++
Class and object in C++
rprajat007
 
Object and class in java
Object and class in java
Umamaheshwariv1
 
Lect 1-java object-classes
Lect 1-java object-classes
Fajar Baskoro
 
C++ classes
C++ classes
imhammadali
 
Java class,object,method introduction
Java class,object,method introduction
Sohanur63
 
11 Using classes and objects
11 Using classes and objects
maznabili
 
Pi j3.2 polymorphism
Pi j3.2 polymorphism
mcollison
 
[OOP - Lec 09,10,11] Class Members & their Accessing
[OOP - Lec 09,10,11] Class Members & their Accessing
Muhammad Hammad Waseem
 
Static keyword ppt
Static keyword ppt
Vinod Kumar
 
Data members and member functions
Data members and member functions
Harsh Patel
 
Class & Object - Intro
Class & Object - Intro
PRN USM
 
Classes and objects
Classes and objects
rajveer_Pannu
 
Classes-and-Object.pptx
Classes-and-Object.pptx
VishwanathanS5
 
Simple class and object examples in java
Simple class and object examples in java
Harish Gyanani
 

More Related Content

What's hot (20)

Class or Object
Class or Object
Rahul Bathri
 
Data members and member functions
Data members and member functions
Marlom46
 
البرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثة
Mahmoud Alfarra
 
Class and object in c++
Class and object in c++
NainaKhan28
 
ITFT-Classes and object in java
ITFT-Classes and object in java
Atul Sehdev
 
Class and Objects in Java
Class and Objects in Java
Spotle.ai
 
CLASS & OBJECT IN JAVA
CLASS & OBJECT IN JAVA
Riaj Uddin Mahi
 
Lect 1-class and object
Lect 1-class and object
Fajar Baskoro
 
Class and object in C++
Class and object in C++
rprajat007
 
Object and class in java
Object and class in java
Umamaheshwariv1
 
Lect 1-java object-classes
Lect 1-java object-classes
Fajar Baskoro
 
C++ classes
C++ classes
imhammadali
 
Java class,object,method introduction
Java class,object,method introduction
Sohanur63
 
11 Using classes and objects
11 Using classes and objects
maznabili
 
Pi j3.2 polymorphism
Pi j3.2 polymorphism
mcollison
 
[OOP - Lec 09,10,11] Class Members & their Accessing
[OOP - Lec 09,10,11] Class Members & their Accessing
Muhammad Hammad Waseem
 
Static keyword ppt
Static keyword ppt
Vinod Kumar
 
Data members and member functions
Data members and member functions
Harsh Patel
 
Class & Object - Intro
Class & Object - Intro
PRN USM
 
Classes and objects
Classes and objects
rajveer_Pannu
 
Data members and member functions
Data members and member functions
Marlom46
 
البرمجة الهدفية بلغة جافا - الوراثة
البرمجة الهدفية بلغة جافا - الوراثة
Mahmoud Alfarra
 
Class and object in c++
Class and object in c++
NainaKhan28
 
ITFT-Classes and object in java
ITFT-Classes and object in java
Atul Sehdev
 
Class and Objects in Java
Class and Objects in Java
Spotle.ai
 
Lect 1-class and object
Lect 1-class and object
Fajar Baskoro
 
Class and object in C++
Class and object in C++
rprajat007
 
Object and class in java
Object and class in java
Umamaheshwariv1
 
Lect 1-java object-classes
Lect 1-java object-classes
Fajar Baskoro
 
Java class,object,method introduction
Java class,object,method introduction
Sohanur63
 
11 Using classes and objects
11 Using classes and objects
maznabili
 
Pi j3.2 polymorphism
Pi j3.2 polymorphism
mcollison
 
[OOP - Lec 09,10,11] Class Members & their Accessing
[OOP - Lec 09,10,11] Class Members & their Accessing
Muhammad Hammad Waseem
 
Static keyword ppt
Static keyword ppt
Vinod Kumar
 
Data members and member functions
Data members and member functions
Harsh Patel
 
Class & Object - Intro
Class & Object - Intro
PRN USM
 

Similar to Chapter2 array of objects (20)

Classes-and-Object.pptx
Classes-and-Object.pptx
VishwanathanS5
 
Simple class and object examples in java
Simple class and object examples in java
Harish Gyanani
 
Java PPT OOPS prepared by Abhinav J.pptx
Java PPT OOPS prepared by Abhinav J.pptx
JainSaab2
 
packages and interfaces
packages and interfaces
madhavi patil
 
Oop java
Oop java
Minal Maniar
 
how to create object
how to create object
Subhasis Nayak
 
Lecture 4 part 2.pdf
Lecture 4 part 2.pdf
SakhilejasonMsibi
 
Lecture 4
Lecture 4
talha ijaz
 
Lesson1
Lesson1
Alex Honcharuk
 
10slide
10slide
Dorothea Chaffin
 
JavaYDL10
JavaYDL10
Terry Yoast
 
oopm 2.pdf
oopm 2.pdf
jayeshsoni49
 
Concept of constructors
Concept of constructors
kunj desai
 
C# Summer course - Lecture 3
C# Summer course - Lecture 3
mohamedsamyali
 
3 functions and class
3 functions and class
trixiacruz
 
Oop scala
Oop scala
AnsviaLab
 
Chapter 6 OOP (Revision)
Chapter 6 OOP (Revision)
OUM SAOKOSAL
 
Java-U1-C_1.2.pptx its all about the java
Java-U1-C_1.2.pptx its all about the java
delta210210210
 
Lecture 4
Lecture 4
emailharmeet
 
C++ Programming Course
C++ Programming Course
Dennis Chang
 
Classes-and-Object.pptx
Classes-and-Object.pptx
VishwanathanS5
 
Simple class and object examples in java
Simple class and object examples in java
Harish Gyanani
 
Java PPT OOPS prepared by Abhinav J.pptx
Java PPT OOPS prepared by Abhinav J.pptx
JainSaab2
 
packages and interfaces
packages and interfaces
madhavi patil
 
Concept of constructors
Concept of constructors
kunj desai
 
C# Summer course - Lecture 3
C# Summer course - Lecture 3
mohamedsamyali
 
3 functions and class
3 functions and class
trixiacruz
 
Chapter 6 OOP (Revision)
Chapter 6 OOP (Revision)
OUM SAOKOSAL
 
Java-U1-C_1.2.pptx its all about the java
Java-U1-C_1.2.pptx its all about the java
delta210210210
 
C++ Programming Course
C++ Programming Course
Dennis Chang
 
Ad

More from Mahmoud Alfarra (20)

Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
Chapter 0: introduction to data structure
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
3 classification
3 classification
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
Chapter 0: introduction to data structure
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
Ad

Recently uploaded (20)

ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Paper 106 | Ambition and Corruption: A Comparative Analysis of ‘The Great Gat...
Paper 106 | Ambition and Corruption: A Comparative Analysis of ‘The Great Gat...
Rajdeep Bavaliya
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Paper 106 | Ambition and Corruption: A Comparative Analysis of ‘The Great Gat...
Paper 106 | Ambition and Corruption: A Comparative Analysis of ‘The Great Gat...
Rajdeep Bavaliya
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Gladiolous Cultivation practices by AKL.pdf
Gladiolous Cultivation practices by AKL.pdf
kushallamichhame
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 

Chapter2 array of objects

  • 1. Object Oriented Programming Chapter 2: Array of objects Prepared by: Mahmoud Rafeek Alfarra 2016
  • 3. Outlines ◉ User defined type ◉ Array of User defined type (new class) ◉ Passing Objects to Methods ◉ Immutable Objects and Classes ◉ Full Example Note: I have prepared this material Based on (Liang: “Introduction to Programming using Java”, 10’th edition, 2015)
  • 4. Lecture Let’s think on fieldes of class 3
  • 5. o As the defined class is a new data type, we can defined any variables or arrays of it. User defined type
  • 6. Array of User defined type int sal; int id; String name; … Employee class e1 e2 e3 e4 e5 e6 e7 e8 Employee [ ] x ;
  • 7. Array of User defined type o An array of objects is actually an array of reference variables. Circle[] circleArray = new Circle[10];
  • 8. Array of User defined type Class [ ] x ; Add objects Delete objects Looking for objects Printing all data …. Class To management many objects which are stored in array
  • 9. o Passing by value for primitive type value (the value is passed to the parameter) o Passing by value for reference type value (the value is the reference to the object) Passing Objects to Methods
  • 11. o For a class to be immutable, it must mark all data fields private and provide no mutator methods and no accessor methods that would return a reference to a mutable data field object. o If the contents of an object cannot be changed once the object is created, the object is called an immutable object and its class is called an immutable class. Immutable Objects and Classes
  • 12. Immutable ? public class Student { private int id; private BirthDate birthDate; public Student(int ssn, int year, int month, int day) { id = ssn; birthDate = new BirthDate(year, month, day); } public int getId() { return id; } public BirthDate getBirthDate() { return birthDate; } } public class BirthDate { private int year; private int month; private int day; public BirthDate(int newYear, int newMonth, int newDay) { year = newYear; month = newMonth; day = newDay; } public void setYear(int newYear) { year = newYear; } }
  • 13. Example: ContactBook int serial; String name; String mobile; String address; … Contact class int count; void search(){} void print(){} void insert(){} … ManagArray class e1 e2 e3 e4 e5 e6 e7 e8 Contact [ ] conArray ;
  • 14. Contact book class Contact { private String name; //…. public Contact (String name, String mobile) { … } } class ManagArray { private Contact [ ] contBook; private int count; // … public ManagArray(int size){ … } public void insert(Contact c) { …. } public void printData() { … } public void searchByName(String name) { … } }
  • 15. static int x; class Test obj1 X = 0X = 1 obj2 X = 2 obj3 X = 3 Now: Print Obj1.X 3 Print Obj1.X 3 Print Obj1.X 3
  • 16. Practices Group 1 Give 3 examples to array of objects. Group 2 Diffrenciate between Passing by value and by reference. Group 3 Develop Immutable class.
  • 17. THANKS! Any questions? You can find me at: Fb/mahmoudRAlfarra Staff.cst.ps/mfarra Youtube.com/mralfarra1 @mralfarra