面向对象编程与程序编程

时间:2016-01-17 03:09:58

标签: java oop code-snippets procedural

我正在尝试在java中编写两个代码示例:OOP和procedural,但我想不出程序代码示例。我在下面有一个OOP代码示例。有人能给我一个程序代码的例子,并解释一下它的作用吗?

下面的OOP示例:

string = string + v1.As<UnicodeString>();

1 个答案:

答案 0 :(得分:-1)

Java旨在完全面向对象,而C是一种过程语言。我建议看http://www.tutorialspoint.com/cprogramming/c_overview.htm来阅读C. Java不是用于程序性的。这就是我能做的所有帮助。您需要对编程范例进行一些研究。 Practical Explanation : Can anyone Explain the difference between POPS and OOPS with Example?