Compute Area of a Circle
សម្ព័ន្ធភាព៖ Isra Universityដំណោះស្រាយ៖ បុគ្គល | រយៈពេល៖ មួយទៅពីរម៉ោង
ទិដ្ឋភាពទូទៅ
គោលដៅ
The objective of this activity is to Compute Area of Circle.
វត្ថុបំណងការសិក្សា
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
បរិបទ
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.