Professional Documents
Culture Documents
are 3 objects
in this program code. "designation”, “collegeName”, and “mainSubject”. The objects are called at
“System.out.println(obj.sample)” 1st is collegename, designation for the 2nd obj, and mainSubject for the
3rd object, and for the last line of code that says “obj.does()” is a preset code at “System.out.println”
code that says Teaching I think the class can be an object because we can say an object is merely an
instance of a class.