Question: a . The terms class, object and package are often used in OOP. Briefly explain with examples, what they define ( 6 marks ) b
a The terms class, object and package are often used in OOP. Briefly explain with examples,
what they define
marks
b What makes a constructor a "special" method in Java? What are the different rypes of
constructors used in Java? Use examples to demonstrate
c Write code for the main method in Java
d Explain what is meant by a modifier, and then list and explain three access modifiers.
marks
Question
a Differentiate between types of variables used in OOP.
b Use an example to explain how an object is created and instantiated in a pava program, and
the different parts of the code used.
c Describe and give a relevaint example of a method's signature
d Draw a class UML diagram and implement it using Java, and then create objects.
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
