Question: Consider the following class Class MySerializableClass2 { public String name; public char gender; public Boolean vegetarian; public Array List Double luggage_kg=new Array List (); public

Consider the following class Class MySerializableClass2 { public String name; public char gender; public Boolean vegetarian; public Array List Double luggage_kg=new Array List (); public MyserializableClass2 (String name, char gender, Boolean vegetarian) { this name - name; this gender=gender; this vegetarian = vegetarian; } } in the answer space below, implement an altered MyserializableClass2 so that the class and only the fields gender, vegetarian and luggage_kg are serializable For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
