Is it possible to have a function run at the beginning of every function of a class without explicitly writing it? I'm going to have a class with 20 or so methods, and though I can just copy and paste, I was wondering if there was an easier way to do things. Thanks in advance.
Mathhax0r 2 Junior Poster in Training
masterofpuppets
Mathhax0r 2 Junior Poster in Training
lllllIllIlllI 178 Veteran Poster
lrh9 95 Posting Whiz in Training
lllllIllIlllI 178 Veteran Poster
lrh9 95 Posting Whiz in Training
lrh9 95 Posting Whiz in Training
Gribouillis commented: A class decorator is the solution. +2
lrh9 95 Posting Whiz in Training
kriti98 0 Newbie Poster
lllllIllIlllI commented: Make a new thread +0
jcao219 18 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.