• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

一.导言

随着java学习的不断深入,现在的题型难度迅速增加,题型数量也增加了不少。在这短暂的时间里,我了解了对象和类,面向对象,继承和多态,用java实现了链表函数和双向链表。

1.在对象和类中,我学习了定义类和创建对象的方法,比如定义getArea()和get perimeter();还包括定义静态变量和添加修饰符static,以及添加private包装的时候。在给一个方法传递对象参数的时候,比如printCircle(myCircle)就是把myCircle的值传递给printCircle方法,这是对Circle对象的引用值;同时也可以用这个来调用构造函数,比如this.radius=radius

对象是一个类的实例。您可以使用new运算符创建一个对象,并使用点运算符(.)通过其引用变量访问其成员。

2.遗传和多态性:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now