Reference no: EM13493549
1. There are many different concepts associated with OOP (Object-oriented programming) like:
• Class
• Object
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
• Interface
• Method Overloading
• Method Overriding
• ...and others
QUESTION: Pick FIVE of the above listed OOP concepts and describe each in details
2. (2) In Java (and OOP), Inheritance involves the concept of super class (parent class) and sub class (derived class). What is a super class in Java? What is a sub or derived class in Java?
(3) 3. Code a simple class in JAVA classed "Student." Your class must contain the followings:
• Variables (name, age, addressStreet, city, state, zip, country)
• Setter and Getter methods
Example:
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
4. Code a short JAVA program that demonstrates Inheritance.
HINT:
• To demonstrate true OOP inheritance, your code must include a super (parent) class and a sub class (derived class)
• As an example, class Student could be a super class while class GraduateStudent is a sub class that inherits from Student class.
• In your subclass (i.e. GraduateStudent), you must include the JAVA inheritance keyword that shows that a class inherits from another.
What share price would you expect based on your estimate
: If Roybus has 35 million shares outstanding and a weighted average cost of capital of 13%,what change in Roybus’ stock price would you expect upon this announcement? (Assume the value of Roybus’ debt is not affected by the event.)
|
How much profit will the firm earn
: Suppose the hourly wage is $10 and the price of each unit of capital is $25. The price of output is constant at $50 per unit. The production function is f(E,K)=E^1/2 K^1/4. How much labor and capital should the firm employ in the long run? How..
|
What is the period of the papers motion
: A threatening note written on 8.5x11 inch paper is pinned to the door of a physics professor. WHAT is the period of the paper's motion
|
What is the average power delivered to the resistor
: A series ac circuit contains a 190 ohms resistor, a 14.0 mH inductor, a 4.50uF capacitor, and an ac power source of voltage amplitude 45.0 V operating at an angular frequency of 360 rad/s
|
Inheritance involves the concept of super class
: Inheritance involves the concept of super class (parent class) and sub class (derived class). What is a super class in Java? What is a sub or derived class in Java?
|
Calculate the angle of refraction at the first surface
: Light of wavelength 700 nm is incident on the face of a fused quartz prism (n = 1.458 at 700 nm) at an incidence angle of 72.4°. Calculate the angle of refraction at the first surface
|
What range of share prices do you estimate based on the
: Suppose that Fossil, Inc., has an enterprise value to EBITDA multiple of 9.73 and a P/E multiple of 18.4. What share price would you estimate for KCP using each of these multiples,based on the data for KCP in Problems 23 and 24?
|
Define what is the molecular formula of the compound
: A gaseous compound containing hydrogen and carbon is decomposed and found to contain 85.63% C and 14.37 H by mass. The mass of 258 mL of the gas, measured at STP is 0.646 g. What is the molecular formula of the compound?
|
Compute the temperature change in the water
: A 14.7 g of ice is placed into 324 g of water. Calculate the temperature change in the water upon complete melting of the ice.
|