InterviewSolution
Saved Bookmarks
| 1. |
Write a Java statement to create an object Eg of class Example |
|
Answer» ONG>Answer: Java is an object-oriented programming LANGUAGE. ... For EXAMPLE: in real life, a car is an object. The car has attributes, such as WEIGHT and color, and methods, such as drive and brake. A Class is like an object constructor, or a "blueprint" for creating objects. Explanation: hope it's helpful to you |
|