摘要
逻辑程序设计是通过使用逻辑规则来解决问题,面向对象的程序设计是通过定义与使用对象的方法来解决问题。逻辑程序设计使开发者集中精力于问题而面向对象的方法提倡代码重用。面向对象的逻辑程序设计可结合这两种设计的优点。先简单介绍prolog程序设计,然后重点论述面向对象的Prolog程序设计方法。
Logic Programming is to use logic rules to solve problem while object-oriented programming solve problem by definition and using objects.Logic programming lets developer focus on problems while object-oriented programming focus on code reuse.Object-oriented logic programming has both the benefits.Firstly,this paper will introduce prolog logic programming and then focus on the way to implement object-oriented prolog logic programming.
出处
《上海工程技术大学学报》
CAS
2004年第1期62-68,91,共8页
Journal of Shanghai University of Engineering Science