Question
it's java 1. What is a constructor? What is a default constructor? What is the typical use of a constructor? How do you use a
it's java
1. What is a constructor? What is a default constructor? What is the typical use of a constructor? How do you use a super class constructor? What is a copy constructor?
2. What is meant by an immutable object? What object do we use all the time that is immutable? Why is it implemented that way?
3. What is meant by inheritance? Describe a superclass and a subclass. What is the keyword that is used to implement inheritance? What is a chain of inheritance?
4. What is the "is a" test that we described in class? How does this test relate to inheritance? How does this relate to general classes and specific classes?
5.What is the difference between a primitive data variable and a reference variable? What is meant by passing a variable by value versus reference? What are the potential pitfalls of using a reference variable?
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