首先django-restframework是基于django的一个框架. mixins.py中开头是这样写的: Basic building blocks for generic class based views. We don't bind bahaviour to http method handlers yet, whick allows mixin classes to be composed in interesting ways. generics是把对数据库的增删改查都
多态的好处: A:提高了代码的维护性(继承保证) B:提高了代码的扩展性(由多态保证) 猫狗案例代码 class Animal { public void eat(){ System.out.println("eat"); } public void sleep(){ System.out.println("sleep"); } } class Dog extends Animal { public void eat(){ System.out.println(&q