A Mathematical Modeling of Object Oriented Programming Language : a case study on Java programming language SCI论文 用java阐述了面向对象语言的数学模型
3.1 Class concept in Java Programming Explain with Gender :Male real life Example: Consider Person as a class .Now we can have some Name Of Person : Aditya properties associated with this class Person such as Skin color : White 1.Attributes of Person: Gender : Male
(i) Name of Person (ii) Gender (iii)Skin color Set: A set is well- defined collection of distinct objects of (iv) Hair color etc. our perception or our thought ,to be conceived as a Now these are general properties which form the whole. template of the class Person,and above properties are Set of sets: we have defined a set as a collection of its called as attributes of the class. elements. If the elements be set themselves, then we have Now Person class may have some functionality such as a family of sets, or set of sets. For example ,the collection 1.Talking of all subsets of a non-empty set S is a set of sets. This 2.Walking set is said to be the power set of S and is denoted by 3.Eating P(S). Thus in short class have Class may be defined as follows: 1.Class Name In set theory and its application throughout 2.Properties or Attributes mathematics, a class is collection of sets where each 3.Common function set has some common property. The members of a Now we are going to create object of the class.i.e., actual class is countable. instance of the class. Let us say that we have created So therefore, class={ sets : where all members have object such as “Aayush ”,” Aditay”. Both will have the some common property} same attributes and functionality but have different The basic form of a class in object –oriented attribute value: programming is
class classname
{ Name Of Person :-----------------------------------
parameter declaration; Skin color : ----------------------------------
Method declaration; Gender :----------------------------------
Now this is just a template, called as class and object as Object: The members of a class is called an object. Since instance of the class. the members of a class is a set .Therefore it should possesses some property. Objects are real world entity
such as pen, chair, Name of Person : Aayush
tables,etc.

Color : white
Similar comparision between set theory and object oriented language :
Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. Any entity that has state and behavior is known as an object. For example: chair, pen, table, etc. It can be physical and logical.
Collection of objects is called class. It is a logical entity.
Any programming problem is analyzed in terms of objects and the nature of communication between them. An object takes up space in the memory and has an associated address like structure in C.
Thus class is a set of object and object is a set having some common feature. We can write the class by the symbol ,

, ……etc and object by X,Y, Z……. etc.
3.2 MEMORY SPACE :An object is in Java is essentially a block of memory that contains space to store all instance variables. i.e each object of a class contain an address in memory space.
Memory space for an object={address of the instance variables: variables are members of class}
Creating an object is also referred to as instantiating an object. Objects in Java are created using the new
Copyright © 2014 CTTS.IN, All right reserved

136
(object-oriented programming language) C++(reason)...Contains commonly used mathematical operations – ...Unified Modeling Language (UML) – Graphical ...
c programming language 28页 免费 THE C PROGRAMMING...modeling with mathematical equations and object-...ne object-oriented languages for physical modeling....
On the interaction of object-oriented design patterns...Mathematical and Computer Sciences Loyola University ...of view of a particular programming language. Gam...
Analogue Electronics Data Structure Assembly Programming Language Digital Circuit ...Mathematical modeling INTERNET Programming Object Oriented Programming Database ...
ProgrammingLanguage计算机基础程序语言_计算机软件及应用...languages Object-oriented Languages What is OBJECT?...? A program is considered a mathematical function...
The investigated modelling technique supports programming in equations instead of...language, ObjectMath (Object-oriented Mathematical language for ScientiIIc ...
Oriented Programming 1.1 Introduction 1.2 Object-...3 1.1 Introduction 1 Machine Language: Binary ...expressions are similar to ordinary mathematical ...
With the MATLAB language, you can program and ...object-oriented programming (OOP), and debugging ...MATLAB contains mathematical, statistical, and ...
using the Modelica/Dymola programming language in an object-oriented ...lengthy derivations of mathematical equations governing component characteristics. ...
If the term ‘‘object-oriented programming language’’ means anything, it...abstract data type would require a mathematical ‘‘abstract’’ specification...
热门文档