Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given: 10. class Line { 11. public static class Point {} 12. } 13. 14. class Triangle { 15. // insert code here 16. }
Given: 10. class Line { 11. public static class Point {} 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line? A. Point p = new Point(); B. Line.Point p = new Line.Point(); C. The Point class cannot be instatiated at line 15. D. Line l = new Line() ; l.Point p = new l.Point();
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started