文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > A Mathematical Modeling of Object Oriented Programming Language
侵权投诉

A Mathematical Modeling of Object Oriented Programming Language

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.

A Mathematical Modeling of Object Oriented Programming Language

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 ,

A Mathematical Modeling of Object Oriented Programming Language

, ……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

A Mathematical Modeling of Object Oriented Programming Language

136

上一页第3页

你可能喜欢

热门文档

相关文档

  • History of programming language

    (object-oriented programming language) C++(reason)...Contains commonly used mathematical operations – ...Unified Modeling Language (UML) – Graphical ...

  • The new object-oriented modelling language

    c programming language 28页 免费 THE C PROGRAMMING...modeling with mathematical equations and object-...ne object-oriented languages for physical modeling....

  • ...-oriented design patterns and programming langua...

    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计算机基础程序语言

    ProgrammingLanguage计算机基础程序语言_计算机软件及应用...languages Object-oriented Languages What is OBJECT?...? A program is considered a mathematical function...

  • Object-oriented-mathematical-modelling-Applied-to-m...

    The investigated modelling technique supports programming in equations instead of...language, ObjectMath (Object-oriented Mathematical language for ScientiIIc ...

  • CHAPTER 1 Object-Oriented Programming

    Oriented Programming 1.1 Introduction 1.2 Object-...3 1.1 Introduction 1 Machine Language: Binary ...expressions are similar to ordinary mathematical ...

  • MATLAB的中英文翻译

    With the MATLAB language, you can program and ...object-oriented programming (OOP), and debugging ...MATLAB contains mathematical, statistical, and ...

  • Dynamic Modeling and Simulation of a Dual-Clutch Au...

    using the Modelica/Dymola programming language in an object-oriented ...lengthy derivations of mathematical equations governing component characteristics. ...

  • a tour of C++

    If the term ‘‘object-oriented programming language’’ means anything, it...abstract data type would require a mathematical ‘‘abstract’’ specification...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email