Explanatory Question
(a) Name any two basic principles of Object-oriented Programming.
Answer
- Encapsulation
- Inheritance
(b) Write a difference between unary and binary operator.
(c) Name the keyword which:
- indicates that a method has no return type.
- makes the variable as a class variable
(d) Write the memory capacity (storage size) of short and float data type in bytes.
(e) Identify and name the following tokens:
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.