A man can gain knowledge by learning facts.

Is "knowledge" a predicate nominative, direct object, indirect object, objective complement, object of preposition, direct address, or appositive?​

Q&A Platform for Education
Platform Explore for Education