Compute Area of a Circle

Affiliation: Isra University
Resolution: Individual | Duration: One to two hours

Overview


Goals

The objective of this activity is to Compute Area of Circle.

Learning Objectives

After the activity, students will be able to: • Make use of objects and classes for developing programs. • Declares objects and classes • How to create your own data type. • Distinguishes classes and objects. • Declares and uses methods and properties • Declares and uses variables

Context

In object-oriented programming, a Class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods). a class is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods). Class is a blueprint for the object. Objects are instances of a class. Class holds its own data member function, accessed and used by creating instance of that class. Object holds the data variables declared in a class and the member function work on these class objects.