Answer:
1. Classes and objects
2. Inheritance
3. Polymorphism
4. Data hiding/ encapsulation
5. Interfaces.
Explanation:
Classes and objects depict the major component of the OOP (object oriented programming). It explains the object like a ball in a soccer game development.
The inheritance is like the subclass of the object. Data hiding is a stage in oop where the codes or data are hidden from another users.
In the polymorphism stage, the object is given the ability to change to a sub-object, while in the interface stage a function or method signature is defined without implementing it.
Answer:
Match the methods:
See attached file
---------------------------------------------------------------------------------------------------------------------------------------
2)
Methods are public, and instance variables are private in common pattern of a class definition program.
So, the correct option is (C).
- -----------------------------------------------------------------------------------------------------------------------------------------
3) Java code:
//Create a Throttle called quiz with 100 positions<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Throttle quiz = new Throttle(100);
//Method that shifts quiz's flow to the halfway
quiz.shift(50);
//Display the current flow from quiz.
System.out.println(quiz.getflow());
-------------------------------------------------------------------------------------------------------
4)
Assume that the Foo class does not have a clone method. Then x is set to refer to a copy of y's object for an assignment x=y; in two Foo objects
.
So, the correct option is (A)
-----------------------------------------------------------------------------------------------------------------------------------------
5)
The correct option is
A)
mower.top and copter.top will always be two separate instance variables.
Explanation:
Answer:
this is ethical behavior and could invade on Mike's privacy, if he did not give the former friend the rights to post that photo online
Explanation: