Question: a) Methods are functions that belongs to a class. Explain the concept of function definitions outside a class using the following scenario: A University needs
a) Methods are functions that belongs to a class. Explain the concept of function definitions outside a class using the following scenario:
A University needs to calculate the fees of students. Explain the required class and function definition outside the class clearly writing a program.
b) Continuing from question (a) with same class and function definition above for student fee payment, explain the concept of encapsulation using any two more functions of your choice.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
