When the second edition of an online course on effective giving starts next month, students will have a chance to learn from actor Patrick Dempsey, billionaire Warren Buffett and other prominent philanthropists.

Students in the free class that’s scheduled to start on April 2 also will be able to help decide how to give away at least $100,000 of Buffett’s sister Doris’ money.

The Learning By Giving Foundation announced Monday that Dempsey had agreed to join the Buffetts, baseball legend Cal Ripken Jr. and other philanthropists in sharing lessons they learned from their own charitable efforts.

“I believe that philanthropy can drive change by empowering everybody in the room to play a role,” said Dempsey, who is perhaps best known for his role in television’s “Grey’s Anatomy.” Dempsey established a center in his Lewiston, Maine, hometown to offer support and education to people dealing with cancer.