Question: a ) Using a real - world example, briefly explain the object - oriented programming ( OOP ) concept and how it differs from procedural
a Using a realworld example, briefly explain the objectoriented programming OOP concept and how it differs from procedural programming.
marks
b Clearly explain with examples what is meant by object, class and package in OOP and how they interact with each other.
marks
c Use a java code example to explain how an object is created and instantiated in a java program, and the different parts of the code used.
marks
d Define the following terms as used in Object Oriented Programming
marks
i Encapsulation
ii Inheritance
iii. Abstraction
iv Polymorphism
e Explain what is meant by a modifier, and then list and explain three access modifiers.
marks
f Differentiate between an expression, statement, and block.
marks
g State and explain types of Control flow statements and give at least one example for each.
marks
h Using java programming language, demonstrate what is meant by method signature.
marks
i State any two packages that can be used to create a Graphical User Interface for a java program.
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
