No,an anonymous class can either implement an interface or extend a class at a particular time but not both at the same time.