Page 1
Object-Oriented Programming [Java]
Latest Questions and Correct Answers
Three Fundamental Features of OOP
Ans: Encapsulation
Inheritance
Polymorphism
Encapsulation
Ans: An object-oriented technique in which the internal
details of an object are "hidden" in order to simplify
their use and reuse.
Inheritance
Ans: A relationship between two classes in which one
class ( the subclass) inherits all of the properties and
capabilities of another ( the superclass)
Polymorphism
Ans: Declaring a variable to have one type while it
refers to an object of a subclass of that type.
Object-Oriented Analysis
, Page 2
Ans: A means of determining what aspects of a given
problem can be viewed as objects in an eventual object -
oriented design.
Object-Oriented Design
Ans: A software design method that models the
characteristics of abstract or real objects using classes
and objects.
Object-Oriented Programming
Ans: A programming technique that features objects,
classes, encapsulation, interfaces, polymorphism, and
inheritance.
Cohesion
Ans: Degree to which responsibilities of a given
component are a meaningful unit
Cohesion vs Coupling
Ans: Greater cohesion reflects better design. Less
coupling reflects better design.
Coupling
Object-Oriented Programming [Java]
Latest Questions and Correct Answers
Three Fundamental Features of OOP
Ans: Encapsulation
Inheritance
Polymorphism
Encapsulation
Ans: An object-oriented technique in which the internal
details of an object are "hidden" in order to simplify
their use and reuse.
Inheritance
Ans: A relationship between two classes in which one
class ( the subclass) inherits all of the properties and
capabilities of another ( the superclass)
Polymorphism
Ans: Declaring a variable to have one type while it
refers to an object of a subclass of that type.
Object-Oriented Analysis
, Page 2
Ans: A means of determining what aspects of a given
problem can be viewed as objects in an eventual object -
oriented design.
Object-Oriented Design
Ans: A software design method that models the
characteristics of abstract or real objects using classes
and objects.
Object-Oriented Programming
Ans: A programming technique that features objects,
classes, encapsulation, interfaces, polymorphism, and
inheritance.
Cohesion
Ans: Degree to which responsibilities of a given
component are a meaningful unit
Cohesion vs Coupling
Ans: Greater cohesion reflects better design. Less
coupling reflects better design.
Coupling